From 16fda7e3a375ec4405080f53093fa4fcfc37f8cf Mon Sep 17 00:00:00 2001 From: nkokkiligadda87 Date: Tue, 3 Sep 2024 10:38:06 +0530 Subject: [PATCH] Change in interceptor service for Swasaa --- .../shared/services/audio-recording.service.ts | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/app/app-modules/nurse-doctor/shared/services/audio-recording.service.ts b/src/app/app-modules/nurse-doctor/shared/services/audio-recording.service.ts index 2ffab8f..8308212 100644 --- a/src/app/app-modules/nurse-doctor/shared/services/audio-recording.service.ts +++ b/src/app/app-modules/nurse-doctor/shared/services/audio-recording.service.ts @@ -137,13 +137,17 @@ export class AudioRecordingService { } } + // getResultStatus(formData: FormData) { + // const boundary = '----WebKitFormBoundary9nAHnlBBDdv4NIqp'; + // const headers = new HttpHeaders({ + // 'Content-Type': `multipart/form-data; boundary=${boundary}`, + // }); + // return this.http.post(environment.getResultStatusURL, formData, { + // headers, + // }); + // } + getResultStatus(formData: FormData) { - const boundary = '----WebKitFormBoundary9nAHnlBBDdv4NIqp'; - const headers = new HttpHeaders({ - 'Content-Type': `multipart/form-data; boundary=${boundary}`, - }); - return this.http.post(environment.getResultStatusURL, formData, { - headers, - }); + return this.http.post(environment.getResultStatusURL, formData); } }