Fix: Open bill regex and the data sent by front-end was not compatible.
This commit is contained in:
@ -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>;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user