We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5425527 + 4b2ad91 commit 07bf3ebCopy full SHA for 07bf3eb
server/controllers/helpers/index.js
@@ -118,7 +118,10 @@ exports.simplifyDebts = async function () {
118
const smallestDebt = minHeapDebt.pop();
119
const smallestCredit = minHeapCredit.pop();
120
// Create a new optimised debt.
121
- const transactionAmount = Math.min(smallestDebt.amount, smallestCredit.amount);
+ const transactionAmount = Math.min(
122
+ smallestDebt.amount,
123
+ smallestCredit.amount,
124
+ );
125
await optimisedDebtModel.create({
126
from: smallestDebt.username,
127
to: smallestCredit.username,
0 commit comments