Skip to content

Commit

Permalink
adding current app type to search.
Browse files Browse the repository at this point in the history
  • Loading branch information
AnalogJ committed Jun 5, 2024
1 parent f78c919 commit 0f15579
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/src/app/services/lighthouse.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ export class LighthouseService {
} else {
filter.searchAfter = []
}
if(environment.environment_desktop){
filter.app = "fastenhealth.desktop"
}

const endpointUrl = new URL(`${environment.lighthouse_api_endpoint_base}/search`);
return this._httpClient.post<ResponseWrapper>(endpointUrl.toString(), filter)
.pipe(
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/app/services/medical-sources-filter.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ export class MedicalSourcesFilter {
searchAfter: string | string[] = '';

fields: string[] = []; //specify the fields to return. if null or empty list, return all.

app?: string
}


Expand Down

0 comments on commit 0f15579

Please sign in to comment.