Skip to content

Commit

Permalink
Merge pull request #1195 from mohan-13/master
Browse files Browse the repository at this point in the history
Fix. Missing string interpolation in query criteria
  • Loading branch information
himeshr authored Nov 22, 2023
2 parents fb83162 + 6e462b9 commit f8a95c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/openchs-android/src/service/IndividualService.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ class IndividualService extends BaseService {
dateMidnight,
dateMorning);
if (!_.isEmpty(programEncounterCriteria))
programEncounters = programEncounters.filtered(programEncounterCriteria);
programEncounters = programEncounters.filtered(`${programEncounterCriteria}`);
if (!_.isNil(addressFilter))
programEncounters = RealmQueryService.filterBasedOnAddress(ProgramEncounter.schema.name, programEncounters, addressFilter);

Expand Down Expand Up @@ -233,7 +233,7 @@ class IndividualService extends BaseService {
dateMidnight,
dateMorning);
if (!_.isEmpty(encounterCriteria))
encounters = encounters.filtered(encounterCriteria);
encounters = encounters.filtered(`${encounterCriteria}`);
if (!_.isNil(addressFilter))
encounters = RealmQueryService.filterBasedOnAddress(Encounter.schema.name, encounters, addressFilter);

Expand Down

0 comments on commit f8a95c5

Please sign in to comment.