Skip to content

Conversation

@vas3a
Copy link
Collaborator

@vas3a vas3a commented Oct 23, 2025

No description provided.

handle: reviewer.memberHandle,
userId: reviewer.memberId.toString(),
amount: Math.round(
amount: Math.ceil(

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[❗❗ correctness]
Using Math.ceil instead of Math.round changes the behavior of the payment calculation by always rounding up. Ensure this change aligns with the intended business logic, as it could result in higher payments than previously calculated.

// }
// }),
// );
console.log('here3', payments);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[❗❗ correctness]
The commented-out code suggests that the logic for processing payments has been disabled. If this is intentional for testing or debugging, consider adding a clear explanation in the pull request description or commit message to avoid confusion for other developers. If this is not intentional, it could lead to missing payment processing functionality.


this.logger.log('Task Completed. locking consumed budget', baValidation);
await this.baService.lockConsumeAmount(baValidation);
// await this.baService.lockConsumeAmount(baValidation);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[❗❗ correctness]
The commented-out line for locking the consumed budget suggests that this functionality is currently disabled. Ensure that this is intentional and documented, as it might affect budget management and lead to inconsistencies if left unchecked.

// }),
// );
console.log('here3', payments);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[⚠️ performance]
Using console.log for debugging purposes in production code can lead to performance issues and cluttered logs. Consider using a proper logging mechanism that integrates with your existing logging strategy.

@vas3a vas3a merged commit 5f2367e into v6 Oct 23, 2025
1 check passed
@vas3a vas3a deleted the fix-reviewers-payments branch October 23, 2025 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant