Fix: Post voucher was not working. Replace command had borked the url.

Fix: Attendace report file name contained single quotes and did not open in excel
This commit is contained in:
2020-12-08 12:59:26 +05:30
parent 1f21438a4c
commit ccf2f704b6
13 changed files with 31 additions and 12 deletions

View File

@ -18,7 +18,7 @@ export class AccountService {
const getUrl: string = id === null ? `${url}` : `${url}/${id}`;
return this.http
.get<Account>(getUrl)
.pipe(catchError(this.log.handleError(serviceName, `get id as Observable<Account>=${id}`))) as Observable<Account>;
.pipe(catchError(this.log.handleError(serviceName, `get id=${id}`))) as Observable<Account>;
}
list(): Observable<Account[]> {

View File

@ -60,7 +60,7 @@ export class VoucherService {
post(id: string): Observable<Voucher> {
return this.http
.post<Voucher>(`${url}/post as Observable<Voucher>-voucher/${id}`, {})
.post<Voucher>(`${url}/post-voucher/${id}`, {})
.pipe(catchError(this.log.handleError(serviceName, 'Post Voucher'))) as Observable<Voucher>;
}