fix(sorting): 🐛 fix unchanged sorting result

This commit is contained in:
pakintada@gmail.com 2024-03-18 11:27:57 +07:00
parent ef9cf48fc1
commit b53183d884
5 changed files with 358 additions and 103 deletions

View file

@ -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' }
);