diff --git a/src/Book.ts b/src/Book.ts index 8d1a5e4..ba84288 100644 --- a/src/Book.ts +++ b/src/Book.ts @@ -22,7 +22,6 @@ const GROUP = { _id: null, balance: { $sum: { $subtract: ["$credit", "$debit"] } }, notes: { $sum: 1 }, - lastTransactionId: { $max: "$_id" }, }, }; @@ -110,6 +109,9 @@ export class Book