Skip to content

Commit a8eafff

Browse files
fix(Searcher): Using query for compliance manager advance search until advance search supports query (#99)
* adding a temporary fix for compliance manager Advance searching
1 parent b32e307 commit a8eafff

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/core/EntityList.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ export class EntityList<T> extends StatefulSubject<T[]> {
8888
}
8989

9090
protected getSearcher(type: string, callingIdentifier = ''): EntityListReference<T> {
91+
if (['Placement'].indexOf(type) >= 0 && callingIdentifier === 'ComplianceManager') { // TODO this will be removed once Advance Search works with Searchable entities.
92+
return new QueryService(this.type, callingIdentifier);
93+
}
9194
if (['Candidate', 'ClientContact', 'ClientCorporation', 'JobOrder', 'Lead', 'Opportunity', 'Placement', 'JobSubmission', 'Note', 'UserMessage'].indexOf(type) >= 0) {
9295
return new SearchService(this.type, callingIdentifier);
9396
}

0 commit comments

Comments
 (0)