Skip to content

Commit

Permalink
fixed the language issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nidhikachhawa24 committed May 30, 2024
1 parent 8e41363 commit 266f641
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/app/services/config.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,16 @@ export class ConfigService {
}

async getAllContent(req: any, lang: any): Promise<any> {
console.log('req ', req);
let request = {
language: lang
}
const apiRequest = new ApiRequest.Builder()
.withHost(config.api.BASE_URL)
.withPath(config.api.PAGE_SEARCH_API)
.withType(ApiHttpRequestType.POST)
.withBearerToken(true)
// .withBody(req)
// .withLanguge(lang)
.withBody(request)
.withLanguge(lang)
.build()
return lastValueFrom(this.apiService.fetch(apiRequest).pipe(
map((apiResponse) => apiResponse.body.result),
Expand Down

0 comments on commit 266f641

Please sign in to comment.