Skip to content

Commit a7cb833

Browse files
Merge pull request #587 from IABTechLab/ans-UID2-dont-show-test-participants-prod
dont show participants with no date approved
2 parents 0f5a7e7 + ee889ea commit a7cb833

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/api/services/participantsService.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ export const getAttachedSiteIDs = async (): Promise<SiteIdType[]> => {
7676
};
7777

7878
export const getAllParticipants = async (): Promise<Participant[]> => {
79-
return Participant.query().withGraphFetched('[apiRoles, approver, types, users]');
79+
return Participant.query()
80+
.whereNotNull('dateApproved')
81+
.withGraphFetched('[apiRoles, approver, types, users]');
8082
};
8183

8284
export const getParticipantsBySiteIds = async (siteIds: number[]) => {

0 commit comments

Comments
 (0)