You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-16 00:14:34 +02:00
Chore: Migrate SQL queries in preparation for web support (#10670)
This commit is contained in:
@ -54,7 +54,7 @@ export default class ResourceService extends BaseService {
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
|
||||
const noteIds = changes.map((a: any) => a.item_id);
|
||||
const notes = await Note.modelSelectAll(`SELECT id, title, body, encryption_applied FROM notes WHERE id IN ("${noteIds.join('","')}")`);
|
||||
const notes = await Note.modelSelectAll(`SELECT id, title, body, encryption_applied FROM notes WHERE id IN ('${noteIds.join('\',\'')}')`);
|
||||
|
||||
const noteById = (noteId: string) => {
|
||||
for (let i = 0; i < notes.length; i++) {
|
||||
|
Reference in New Issue
Block a user