Changed the for-product route to for-sku to reduce ambiguity
This commit is contained in:
@ -32,9 +32,9 @@ export class ModifierCategoryService {
|
||||
.pipe(catchError(this.log.handleError(serviceName, 'list'))) as Observable<ModifierCategory[]>;
|
||||
}
|
||||
|
||||
listForSku(id: string): Observable<ModifierCategory[]> {
|
||||
listForSku(sku_id: string): Observable<ModifierCategory[]> {
|
||||
return this.http
|
||||
.get<ModifierCategory[]>(`${url}/for-product/${id}`)
|
||||
.get<ModifierCategory[]>(`${url}/for-sku/${sku_id}`)
|
||||
.pipe(catchError(this.log.handleError(serviceName, 'listForSku'))) as Observable<ModifierCategory[]>;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user