From a8eafff015b618ae71d708164378c02c873aa2f8 Mon Sep 17 00:00:00 2001 From: ShylendraPandravisam <44584659+ShylendraPandravisam@users.noreply.github.com> Date: Mon, 31 Jul 2023 14:40:15 -0400 Subject: [PATCH] fix(Searcher): Using query for compliance manager advance search until advance search supports query (#99) * adding a temporary fix for compliance manager Advance searching --- src/core/EntityList.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/EntityList.ts b/src/core/EntityList.ts index 8c6b8dc..fa74b25 100644 --- a/src/core/EntityList.ts +++ b/src/core/EntityList.ts @@ -88,6 +88,9 @@ export class EntityList extends StatefulSubject { } protected getSearcher(type: string, callingIdentifier = ''): EntityListReference { + if (['Placement'].indexOf(type) >= 0 && callingIdentifier === 'ComplianceManager') { // TODO this will be removed once Advance Search works with Searchable entities. + return new QueryService(this.type, callingIdentifier); + } if (['Candidate', 'ClientContact', 'ClientCorporation', 'JobOrder', 'Lead', 'Opportunity', 'Placement', 'JobSubmission', 'Note', 'UserMessage'].indexOf(type) >= 0) { return new SearchService(this.type, callingIdentifier); }