diff --git a/src/app/clients/clients.service.ts b/src/app/clients/clients.service.ts index da94f511e..b98feb46d 100644 --- a/src/app/clients/clients.service.ts +++ b/src/app/clients/clients.service.ts @@ -351,7 +351,7 @@ export class ClientsService { retrieveClientReportTemplate(templateId: string, clientId: string) { const httpParams = new HttpParams().set('clientId', clientId); - return this.http.post(`/templates/${templateId}`, {}, { params: httpParams, responseType: 'text' }); + return this.http.get(`/templates/${templateId}`, { params: httpParams, responseType: 'text' }); } /** diff --git a/src/app/loans/loans.service.ts b/src/app/loans/loans.service.ts index b1d490eb6..935331762 100644 --- a/src/app/loans/loans.service.ts +++ b/src/app/loans/loans.service.ts @@ -510,7 +510,7 @@ export class LoansService { getTemplateData(templateId: any, loanId: any): Observable { const httpParams = new HttpParams().set('loanId', loanId); - return this.http.post(`/templates/${templateId}`, {}, { params: httpParams, responseType: 'text' }); + return this.http.get(`/templates/${templateId}`, { params: httpParams, responseType: 'text' }); } /**