mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 18:05:55 +01:00
delete notes are now in cache as well which allows simplified update of the tree after deletion
This commit is contained in:
@@ -6,17 +6,17 @@ const protectedSessionService = require('../../services/protected_session');
|
||||
const noteCacheService = require('../../services/note_cache');
|
||||
|
||||
async function getNotes(noteIds) {
|
||||
// we return also deleted notes which have been specifically asked for
|
||||
const notes = await sql.getManyRows(`
|
||||
SELECT
|
||||
noteId,
|
||||
title,
|
||||
isProtected,
|
||||
type,
|
||||
mime
|
||||
FROM
|
||||
notes
|
||||
WHERE isDeleted = 0
|
||||
AND noteId IN (???)`, noteIds);
|
||||
mime,
|
||||
isDeleted
|
||||
FROM notes
|
||||
WHERE noteId IN (???)`, noteIds);
|
||||
|
||||
const cssClassLabels = await sql.getManyRows(`
|
||||
SELECT noteId, value FROM attributes WHERE isDeleted = 0 AND type = 'label'
|
||||
|
||||
Reference in New Issue
Block a user