Skip to content

Commit

Permalink
sql change
Browse files Browse the repository at this point in the history
  • Loading branch information
Ebed-meleck committed Nov 30, 2023
1 parent bb5cf48 commit 572a1df
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ async function report(req, res, next) {
const transactionUuids = rows.map(row => db.bid(row.uuid));
const aggregateData = await db.one(aggregateSql, [transactionUuids]);
let aggregate;

if (aggregateData) {
aggregate = { ...aggregateData };
aggregate.balance = aggregateData.debit_equiv - aggregateData.credit_equiv;
Expand Down

0 comments on commit 572a1df

Please sign in to comment.