Skip to content

Commit

Permalink
Fixed issue in computing project total attestation
Browse files Browse the repository at this point in the history
  • Loading branch information
aminlatifi committed May 16, 2024
1 parent 0921930 commit 7ce429e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/controllers/projectVerificationAttestation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ export const handleProjectAttestation = async (
});

await ctx.store.upsert(projectAttestation);
ctx.log.debug(`Upserted project attestation ${projectAttestation}`);
ctx.log.debug(
`Upserted project attestation ${JSON.stringify(projectAttestation)}`
);

await updateProjectAttestationCounts(ctx, project);
};
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/utils/modelHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export const getProjectStats = async (
ID,
PR_TOTAL_FLAGS,
PR_TOTAL_VOUCHES,
PR_TOTAL_FLAGS + PR_TOTAL_VOUCHES AS PR_TOTAL_ATTESTATIONS,
COALESCE(PR_TOTAL_FLAGS, 0) + COALESCE(PR_TOTAL_VOUCHES, 0) AS PR_TOTAL_ATTESTATIONS,
ORG_FLAGS,
ORG_VOUCHES,
UNIQ_ORGS
Expand Down

0 comments on commit 7ce429e

Please sign in to comment.