Skip to content

Commit 7b03c1d

Browse files
committed
fix: exclude revoked attestations from total count in summary
1 parent 16e23c7 commit 7b03c1d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/api/routes.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,9 @@ export function createApiRouter(): Router {
793793

794794
const [totalRepos, totalAttestations, activeAttestations, expiringSoon] = await Promise.all([
795795
prisma.repository.count(),
796-
prisma.attestation.count(),
796+
prisma.attestation.count({
797+
where: { revokedAt: null },
798+
}),
797799
prisma.attestation.count({
798800
where: { revokedAt: null, expiresAt: { gt: now } },
799801
}),

0 commit comments

Comments
 (0)