Skip to content

Commit 9f1e341

Browse files
committed
Update how 'reporterRefCode' filter works
Now is not exact match but 'isLike'
1 parent e3e0882 commit 9f1e341

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/domain-services/report-details/report-detail-service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,10 @@ export class ReportDetailService {
8282
const reportDetails: Array<InstanceDataOfModel<Database['reportDetail']>> =
8383
await models.reportDetail.find({
8484
where: {
85-
refCode: reporterRefCode,
85+
refCode: { [models.Op.ILIKE]: `%${reporterRefCode}%` },
8686
},
8787
skipValidation: true,
88+
distinct: ['flowID'],
8889
});
8990

9091
const flowIDs: UniqueFlowEntity[] = [];

0 commit comments

Comments
 (0)