diff --git a/src/api/services/participantsService.ts b/src/api/services/participantsService.ts index 999b3db1..b5fd19b3 100644 --- a/src/api/services/participantsService.ts +++ b/src/api/services/participantsService.ts @@ -76,7 +76,9 @@ export const getAttachedSiteIDs = async (): Promise => { }; export const getAllParticipants = async (): Promise => { - return Participant.query().withGraphFetched('[apiRoles, approver, types, users]'); + return Participant.query() + .whereNotNull('dateApproved') + .withGraphFetched('[apiRoles, approver, types, users]'); }; export const getParticipantsBySiteIds = async (siteIds: number[]) => {