Skip to content

Commit

Permalink
fix: CE-656 zone at glance not display all officers (#416)
Browse files Browse the repository at this point in the history
Co-authored-by: Barrett Falk <[email protected]>
  • Loading branch information
Scarlett-Truong and barrfalk authored May 8, 2024
1 parent 8eb14aa commit faebdd8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/src/v1/complaint/complaint.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -553,9 +553,11 @@ export class ComplaintService {

private _getOfficeIdByOrganizationUnitCode = async (code: string): Promise<UUID> => {
try {
const agency = await this._getAgencyByUser();
const officeGuidQuery = await this._officeRepository
.createQueryBuilder("office")
.where("office.geo_organization_unit_code = :code", { code });
.where("office.geo_organization_unit_code = :code", { code })
.andWhere("office.agency_code = :agency", { agency: agency.agency_code });

const office = await officeGuidQuery.getOne();

Expand Down

0 comments on commit faebdd8

Please sign in to comment.