Settle Options are now stored in the Database and can be updated

This commit is contained in:
2020-12-13 09:44:32 +05:30
parent d65379a068
commit 27aa4d12a6
72 changed files with 1326 additions and 551 deletions

View File

@ -57,7 +57,7 @@ export class VoucherService {
updateTable: boolean,
): Observable<boolean> {
const options = {
params: new HttpParams().set('p', voucherType).set('u', updateTable.toString()),
params: new HttpParams().set('p', voucherType.toString()).set('u', updateTable.toString()),
};
if (guestBookId !== null) {
options.params = options.params.set('g', guestBookId);
@ -74,7 +74,7 @@ export class VoucherService {
updateTable: boolean,
): Observable<boolean> {
const options = {
params: new HttpParams().set('p', voucherType).set('u', updateTable.toString()),
params: new HttpParams().set('p', voucherType.toString()).set('u', updateTable.toString()),
};
if (guestBookId !== null) {
options.params = options.params.set('g', guestBookId);