mirror of
https://github.com/zadam/trilium.git
synced 2025-11-11 07:45:51 +01:00
small changes to table names (notes_image => note_images etc.)
This commit is contained in:
@@ -50,9 +50,9 @@ async function getNoteWithSubtreeScript(noteId, req) {
|
||||
|
||||
async function getSubTreeScripts(parentId, includedNoteIds, dataKey) {
|
||||
const children = await sql.getAll(`SELECT notes.noteId, notes.title, notes.content, notes.isProtected, notes.mime
|
||||
FROM notes JOIN notes_tree USING(noteId)
|
||||
WHERE notes_tree.isDeleted = 0 AND notes.isDeleted = 0
|
||||
AND notes_tree.parentNoteId = ? AND notes.type = 'code'
|
||||
FROM notes JOIN note_tree USING(noteId)
|
||||
WHERE note_tree.isDeleted = 0 AND notes.isDeleted = 0
|
||||
AND note_tree.parentNoteId = ? AND notes.type = 'code'
|
||||
AND (notes.mime = 'application/javascript' OR notes.mime = 'text/html')`, [parentId]);
|
||||
|
||||
protected_session.decryptNotes(dataKey, children);
|
||||
|
||||
Reference in New Issue
Block a user