From ab8bc26abc39d3000a477190367a8e1939ac938c Mon Sep 17 00:00:00 2001 From: fcote Date: Sun, 30 May 2021 14:30:32 +0200 Subject: [PATCH] fix(server): monthlyForecast calculation --- server/src/resolvers/user/user.fields.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/resolvers/user/user.fields.ts b/server/src/resolvers/user/user.fields.ts index 2e083a6d..29c5542c 100644 --- a/server/src/resolvers/user/user.fields.ts +++ b/server/src/resolvers/user/user.fields.ts @@ -96,7 +96,7 @@ class UserFieldsResolver { @Arg('nMonth', (_) => Int) nMonth: number ): Promise { const currentDate = () => { - return dayjs().startOf('month') + return dayjs().startOf('month').hour(0).minute(0).second(0) } const userTransactionService = new UserTransactionService(ctx)