mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-11 20:44:32 -05:00
Compare commits
1 Commits
matiss/fix
...
fix-sql-in
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
15e4023ced |
@@ -370,7 +370,8 @@ async function getCategoryTemplates() {
|
|||||||
const templates = {};
|
const templates = {};
|
||||||
|
|
||||||
const notes = await db.all<db.DbNote>(
|
const notes = await db.all<db.DbNote>(
|
||||||
`SELECT * FROM notes WHERE lower(note) like '%${TEMPLATE_PREFIX}%'`,
|
`SELECT * FROM notes WHERE lower(note) like ?`,
|
||||||
|
[`%${TEMPLATE_PREFIX}%`]
|
||||||
);
|
);
|
||||||
|
|
||||||
for (let n = 0; n < notes.length; n++) {
|
for (let n = 0; n < notes.length; n++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user