From 0f15579618e5ea65ab72f11869aaa98bdf00d979 Mon Sep 17 00:00:00 2001 From: Jason Kulatunga Date: Tue, 4 Jun 2024 22:02:40 -0700 Subject: [PATCH] adding current app type to search. --- frontend/src/app/services/lighthouse.service.ts | 4 ++++ frontend/src/app/services/medical-sources-filter.service.ts | 2 ++ 2 files changed, 6 insertions(+) diff --git a/frontend/src/app/services/lighthouse.service.ts b/frontend/src/app/services/lighthouse.service.ts index a8d61e75..6c2f3ba1 100644 --- a/frontend/src/app/services/lighthouse.service.ts +++ b/frontend/src/app/services/lighthouse.service.ts @@ -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(endpointUrl.toString(), filter) .pipe( diff --git a/frontend/src/app/services/medical-sources-filter.service.ts b/frontend/src/app/services/medical-sources-filter.service.ts index 3d95a066..56fd0e37 100644 --- a/frontend/src/app/services/medical-sources-filter.service.ts +++ b/frontend/src/app/services/medical-sources-filter.service.ts @@ -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 }