-
Notifications
You must be signed in to change notification settings - Fork 1
round up reviewers payments #102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| handle: reviewer.memberHandle, | ||
| userId: reviewer.memberId.toString(), | ||
| amount: Math.round( | ||
| amount: Math.ceil( |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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); | ||
|
|
There was a problem hiding this comment.
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.
No description provided.