Feature: Added product bundles. Have to wire it up to inventory and reports.
This commit is contained in:
@ -4,7 +4,6 @@ import { Observable } from 'rxjs';
|
||||
import { catchError } from 'rxjs/operators';
|
||||
|
||||
import { ErrorLoggerService } from '../core/error-logger.service';
|
||||
import { StockKeepingUnit as Product } from '../core/stock-keeping-unit';
|
||||
import { UpdateProductPrices } from './update-product-prices';
|
||||
|
||||
const url = '/api/update-product-prices';
|
||||
@ -31,7 +30,7 @@ export class UpdateProductPricesService {
|
||||
save(item: UpdateProductPrices): Observable<UpdateProductPrices> {
|
||||
const saveUrl: string = item.menuCategoryId === null ? url : `${url}/${item.menuCategoryId}`;
|
||||
return this.http
|
||||
.post<Product[]>(saveUrl, item)
|
||||
.post<UpdateProductPrices>(saveUrl, item)
|
||||
.pipe(catchError(this.log.handleError(serviceName, 'save'))) as Observable<UpdateProductPrices>;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user