Skip to content

Commit

Permalink
Ignore deleted categories when running templates (#3510)
Browse files Browse the repository at this point in the history
* don't look at deleted categories

* note
  • Loading branch information
youngcw authored Sep 26, 2024
1 parent 479572f commit 4373f4d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/loot-core/src/server/budget/statements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export async function getCategoriesWithTemplateNotes(): Promise<
FROM notes n
JOIN categories c ON n.id = c.id
WHERE c.id = n.id
AND c.tombstone = 0
AND (lower(note) LIKE '%${TEMPLATE_PREFIX}%'
OR lower(note) LIKE '%${GOAL_PREFIX}%')
`,
Expand Down
6 changes: 6 additions & 0 deletions upcoming-release-notes/3510.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [youngcw]
---

Fix templates and syntax check running on deleted categories

0 comments on commit 4373f4d

Please sign in to comment.