From e84dedf675f0e14dd5d918c53c5665985a3d003b Mon Sep 17 00:00:00 2001 From: William Brawner Date: Mon, 17 Jul 2023 21:29:25 -0600 Subject: [PATCH] fixup! Implement /api/transactions/sum --- .../com/wbrawner/twigs/transaction/TransactionController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/main/java/com/wbrawner/twigs/transaction/TransactionController.java b/api/src/main/java/com/wbrawner/twigs/transaction/TransactionController.java index bf93b40..a5992e8 100644 --- a/api/src/main/java/com/wbrawner/twigs/transaction/TransactionController.java +++ b/api/src/main/java/com/wbrawner/twigs/transaction/TransactionController.java @@ -291,7 +291,7 @@ public class TransactionController { return ResponseEntity.notFound().build(); } transactions = transactionRepository.findAllByBudgetInAndCategoryInAndDateGreaterThanAndDateLessThan( - Collections.emptyList(), + List.of(category.getBudget()), List.of(category), fromInstant, toInstant,