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:
@ -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[]> {
|
||||
|
||||
@ -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>;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user