From 5b71453058e8ae19197de91f20b76e5dc38cb322 Mon Sep 17 00:00:00 2001 From: ishowvel Date: Thu, 14 Nov 2024 14:18:22 +0000 Subject: [PATCH] chore: remove precision loss --- src/parser/content-evaluator-module.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/parser/content-evaluator-module.ts b/src/parser/content-evaluator-module.ts index 905b9621..84955f22 100644 --- a/src/parser/content-evaluator-module.ts +++ b/src/parser/content-evaluator-module.ts @@ -120,9 +120,9 @@ export class ContentEvaluatorModule extends BaseModule { currentRelevance = relevancesByAi[currentComment.id]; } - const currentReward = this._getRewardForComment(currentComment, currentRelevance) - .mul(currentComment.score?.priority ?? 1) - .toDecimalPlaces(3); + const currentReward = this._getRewardForComment(currentComment, currentRelevance).mul( + currentComment.score?.priority ?? 1 + ); currentComment.score = { ...(currentComment.score || { multiplier: 0 }),