From ea65ae3a11e03fa66f809be89f86baabf627ad82 Mon Sep 17 00:00:00 2001 From: Rory& Date: Mon, 2 Jun 2025 12:16:30 +0200 Subject: Try to fix auth --- src/api/routes/budgetRoutes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/api/routes/budgetRoutes.js') diff --git a/src/api/routes/budgetRoutes.js b/src/api/routes/budgetRoutes.js index a7ea097..bcb9711 100644 --- a/src/api/routes/budgetRoutes.js +++ b/src/api/routes/budgetRoutes.js @@ -56,7 +56,7 @@ export const addBudgetByUserRoute = { }); } - const user = await getUserById(req.params.id).exec(); + const user = await getUserById(req.params.id); const amount = parseFloat(req.query.amount); if (isNaN(amount) || amount <= 0) { throw new SafeNSoundError({ -- cgit 1.5.1