fix(sorting): 🐛 fix unchanged sorting result
This commit is contained in:
parent
ef9cf48fc1
commit
b53183d884
5 changed files with 358 additions and 103 deletions
|
|
@ -326,11 +326,13 @@ export class RecipeService {
|
|||
country: string,
|
||||
filename: string,
|
||||
sortKey: string,
|
||||
ascending: boolean
|
||||
): Promise<Observable<any>> {
|
||||
return this._httpClient.post<any>(
|
||||
environment.api + '/recipes/sort/' + country + '/' + filename ,
|
||||
JSON.stringify({
|
||||
"sortKey": sortKey
|
||||
"sortKey": sortKey,
|
||||
"ascending": ascending
|
||||
}),
|
||||
{ withCredentials: true, responseType: 'json' }
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue