Skip to content

Commit

Permalink
fix: check
Browse files Browse the repository at this point in the history
  • Loading branch information
shadrach-tayo committed Nov 7, 2024
1 parent 8732119 commit 82c3e06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion desci-server/src/services/Attestation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ export class AttestationService {
async getAllCommunityEntryAttestations(communityId: number) {
const community = await communityService.findCommunityById(communityId);
if (!community) throw new CommunityNotFoundError();
return prisma.communityEntryAttestation.findMany({ where: { desciCommunityId: communityId } });
return prisma.communityEntryAttestation.findMany({ where: { desciCommunityId: communityId, required: true } });
}

async claimAttestation({
Expand Down

0 comments on commit 82c3e06

Please sign in to comment.