diff --git a/backend/src/v1/complaint/complaint.service.ts b/backend/src/v1/complaint/complaint.service.ts index 7039a8b06..f23832606 100644 --- a/backend/src/v1/complaint/complaint.service.ts +++ b/backend/src/v1/complaint/complaint.service.ts @@ -376,7 +376,7 @@ export class ComplaintService { } if (officerAssigned && officerAssigned === "Unassigned") { - builder.andWhere("delegate.person_complaint_xref_guid IS NULL"); + builder.andWhere("delegate.complaint_identifier IS NULL"); } else if (officerAssigned) { builder .andWhere("delegate.person_complaint_xref_code = :Assignee", {