Skip to content

Commit 7f8be8e

Browse files
committed
fix(subgraph): recompute coherence score if totalCoherent changed
1 parent c1c2f97 commit 7f8be8e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

subgraph/src/entities/User.ts

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ export function resolveUserDispute(id: string, previousFeeAmount: BigInt, feeAmo
6666
user.totalCoherent = user.totalCoherent.plus(ONE);
6767
}
6868
}
69+
user.coherenceScore = computeCoherenceScore(user.totalCoherent, user.totalResolvedDisputes);
6970
user.save();
7071
return;
7172
}

0 commit comments

Comments
 (0)