Skip to content

Commit

Permalink
fix(Searcher): Using query for compliance manager advance search unti…
Browse files Browse the repository at this point in the history
…l advance search supports query (#99)

* adding a temporary fix for compliance manager Advance searching
  • Loading branch information
ShylendraPandravisam authored Jul 31, 2023
1 parent b32e307 commit a8eafff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/EntityList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ export class EntityList<T> extends StatefulSubject<T[]> {
}

protected getSearcher(type: string, callingIdentifier = ''): EntityListReference<T> {
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);
}
Expand Down

0 comments on commit a8eafff

Please sign in to comment.