Skip to content

Commit

Permalink
simplify logic
Browse files Browse the repository at this point in the history
  • Loading branch information
shall0pass committed Sep 29, 2023
1 parent 743625a commit 420548a
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions packages/loot-core/src/server/budget/cleanup-template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,7 @@ async function processCleanup(month: string): Promise<Notification> {
);

if (carryover === null) {
await setBudget({
category: category.id,
month,
amount: budgeted,
});
carryover = await db.first(
`SELECT carryover FROM zero_budgets WHERE month = ? and category = ?`,
[db_month, categoryId],
);
carryover = { carryover: 0 };
}

if (
Expand Down

0 comments on commit 420548a

Please sign in to comment.