Fix: Open bill regex and the data sent by front-end was not compatible.

This commit is contained in:
2021-06-14 07:40:43 +05:30
parent 83aa47b33a
commit d9a6c5d20f
3 changed files with 9 additions and 11 deletions

View File

@ -21,11 +21,9 @@ export class SettingsService {
setPrefillCustomerDiscount(value: boolean): Observable<boolean> {
const url = '/api/settings/prefill-customer-discount';
return this.http
.post<{ value: boolean }>(url, { value: value })
.pipe(
map((x) => x.value),
catchError(this.log.handleError(serviceName, 'setPrefillCustomerDiscount')),
) as Observable<boolean>;
return this.http.post<{ value: boolean }>(url, { value: value }).pipe(
map((x) => x.value),
catchError(this.log.handleError(serviceName, 'setPrefillCustomerDiscount')),
) as Observable<boolean>;
}
}