Ignore deleted categories when running templates (#3510)

* don't look at deleted categories

* note
This commit is contained in:
youngcw
2024-09-26 08:14:13 -07:00
committed by GitHub
parent 479572fadb
commit 4373f4d8f9
2 changed files with 7 additions and 0 deletions

View File

@@ -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}%')
`,

View File

@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [youngcw]
---
Fix templates and syntax check running on deleted categories