Feature: Sale Category also shows the products in it to make it easier to check for errors.
This commit is contained in:
1 parent
0b3ec5da16
commit
2f440a4127
8 files changed
+260
-96
No files matched your search
@@ -30,6 +30,15 @@ export class ProductService {
|
||||
.pipe(catchError(this.log.handleError(serviceName, 'list'))) as Observable<Product[]>;
|
||||
}
|
||||
|
||||
listOfSaleCategory(id: string): Observable<Product[]> {
|
||||
const options = { params: new HttpParams().set('sc', id) };
|
||||
return this.http
|
||||
.get<Product[]>(`${url}/query`, options)
|
||||
.pipe(catchError(this.log.handleError(serviceName, 'listOfSaleCategory'))) as Observable<
|
||||
Product[]
|
||||
>;
|
||||
}
|
||||
|
||||
listIsActiveOfCategory(id: string): Observable<Product[]> {
|
||||
const options = { params: new HttpParams().set('mc', id) };
|
||||
return this.http
|
||||
|
||||
Reference in new issue
Block a user