Skip to content

Commit

Permalink
(#1484) | merge conflict resolve 9.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vedfordev committed Sep 9, 2024
2 parents a441441 + b6d90da commit b1cb927
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/openchs-android/src/service/RuleEvaluationService.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import IndividualService from "./IndividualService";
import EncounterService from "./EncounterService";
import EntityService from "./EntityService";
import * as rulesConfig from "rules-config";
import {EditFormRuleResponse} from "rules-config";
import moment from "moment";
import GroupSubjectService from "./GroupSubjectService";
import ProgramService from "./program/ProgramService";
Expand All @@ -45,7 +46,7 @@ import MessageService from './MessageService';
import {Groups, ReportCardResult, NestedReportCardResult} from "openchs-models";
import {JSONStringify} from "../utility/JsonStringify";
import UserInfoService from "./UserInfoService";
import {EditFormRuleResponse} from "rules-config";
import PrivilegeService from './PrivilegeService';

function getImports() {
return {rulesConfig, common, lodash, moment, motherCalculations, log: console.log};
Expand Down Expand Up @@ -838,7 +839,7 @@ class RuleEvaluationService extends BaseService {

getCommonParams() {
const user = this.getService(UserInfoService).getUserInfo();
const myUserGroups = this.getService(EntityService).loadAll(Groups.schema.name);
const myUserGroups = this.getService(PrivilegeService).ownedGroups();
return { user, myUserGroups };
}

Expand Down

0 comments on commit b1cb927

Please sign in to comment.