From 5af11fe7578eab2deead9a3f5829c68aeaf01af8 Mon Sep 17 00:00:00 2001 From: Shubham Kumar Date: Sun, 4 Jan 2026 04:24:20 +0530 Subject: [PATCH] WEB-494:fix: resolve template reports 404 error (#2965) --- src/app/clients/clients.service.ts | 2 +- src/app/loans/loans.service.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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' }); } /**