Skip to content

Commit

Permalink
fix(api): [createBudget] fix period config startDate value (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
duongdev committed Jun 8, 2024
1 parent 2ed3f38 commit 7cdcf6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/api/v1/services/budget.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export async function createBudget({
create: {
type: period.type,
amount: period.amount,
startDate: period.endDate ?? periodConfig.startDate,
startDate: period.startDate ?? periodConfig.startDate,
endDate: period.endDate ?? periodConfig.endDate,
},
},
Expand Down

0 comments on commit 7cdcf6e

Please sign in to comment.