Skip to content

Commit

Permalink
Merge pull request #192 from syedameenabrar/release-3.0.1
Browse files Browse the repository at this point in the history
Observation reports charts issue fixed
  • Loading branch information
5Amogh authored Nov 28, 2024
2 parents 6d83ef2 + 8f934cf commit d25c9e4
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 12 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"jwt-decode": "^4.0.0",
"network-service": "^0.0.1",
"project-player": "^1.1.7",
"questionnaire-webcomponent": "^4.0.3",
"questionnaire-webcomponent": "^4.0.5",
"rxjs": "~7.8.0",
"swiper": "^11.1.1",
"tslib": "^2.6.3",
Expand Down
9 changes: 7 additions & 2 deletions src/app/services/attachment/attachment.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ export class AttachmentService {
constructor(private http: HttpClient) { }

cloudImageUpload(fileDetails:any, uploadUrl:any) {
return this.http.put(uploadUrl.signedUrl, fileDetails)
}
const option = { headers: {
"skipInterceptor": "true",
"Content-Type": "multipart/form-data",
"Access-Control-Allow-Origin": "*"
}}
return this.http.put(uploadUrl.signedUrl, fileDetails, option)
}
}
7 changes: 2 additions & 5 deletions src/app/services/interceptor/api.interceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,9 @@ export class ApiInterceptor implements HttpInterceptor {
return req.clone({
setHeaders: { 'X-auth-token': `bearer ${token}` }
});
} else if (req.url.includes('storage.googleapis.com')) {
} else if (req.headers.has("skipInterceptor")) {
return req.clone({
setHeaders: {
"Content-Type": "multipart/form-data",
"Access-Control-Allow-Origin": "*"
}
headers: req.headers.delete("skipInterceptor")
});
} else {
return req.clone({
Expand Down

0 comments on commit d25c9e4

Please sign in to comment.