Fix: The route to update sort order of Menu Categories was not written.

This commit is contained in:
2021-04-27 07:22:04 +05:30
parent 59bab991fd
commit f78ad68235
3 changed files with 22 additions and 3 deletions

View File

@ -52,7 +52,7 @@ export class MenuCategoryService {
updateSortOrder(list: MenuCategory[]): Observable<boolean> {
return this.http
.post<MenuCategory[]>(url, list, httpOptions)
.post<MenuCategory[]>(`${url}/list`, list, httpOptions)
.pipe(
catchError(this.log.handleError(serviceName, 'updateSortOrder')),
) as Observable<boolean>;