Skip to content

Commit

Permalink
fix(subgraph): recompute coherence score if totalCoherent changed
Browse files Browse the repository at this point in the history
  • Loading branch information
kemuru committed Oct 25, 2023
1 parent c1c2f97 commit 7f8be8e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions subgraph/src/entities/User.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export function resolveUserDispute(id: string, previousFeeAmount: BigInt, feeAmo
user.totalCoherent = user.totalCoherent.plus(ONE);
}
}
user.coherenceScore = computeCoherenceScore(user.totalCoherent, user.totalResolvedDisputes);
user.save();
return;
}
Expand Down

0 comments on commit 7f8be8e

Please sign in to comment.