adding current app type to search.

This commit is contained in:
Jason Kulatunga 2024-06-04 22:02:40 -07:00
parent f78c919af2
commit 0f15579618
No known key found for this signature in database
2 changed files with 6 additions and 0 deletions

View File

@ -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(

View File

@ -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
}