Skip to content

Commit

Permalink
ignore deleted rules
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-fidd committed Oct 9, 2024
1 parent 565aeeb commit f7dd313
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/loot-core/src/server/db/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,8 @@ const orphanedPayeesQuery = `
SELECT 1
FROM rules r,
json_each(r.conditions) as cond
WHERE json_extract(cond.value, '$.field') = 'description'
WHERE r.tombstone = 0
AND json_extract(cond.value, '$.field') = 'description'
AND json_extract(cond.value, '$.value') = pm.targetId
);
`;
Expand Down

0 comments on commit f7dd313

Please sign in to comment.