Skip to content

Commit

Permalink
fix(server): monthlyForecast calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
fcote committed May 30, 2021
1 parent 584d463 commit ab8bc26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/resolvers/user/user.fields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class UserFieldsResolver {
@Arg('nMonth', (_) => Int) nMonth: number
): Promise<any> {
const currentDate = () => {
return dayjs().startOf('month')
return dayjs().startOf('month').hour(0).minute(0).second(0)
}

const userTransactionService = new UserTransactionService(ctx)
Expand Down

0 comments on commit ab8bc26

Please sign in to comment.