mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
change in naming of SQL methods
added assert methods to note tree
This commit is contained in:
@@ -9,7 +9,7 @@ const auth = require('../../services/auth');
|
||||
|
||||
router.post('/cleanup-soft-deleted-items', auth.checkApiAuth, async (req, res, next) => {
|
||||
await sql.doInTransaction(async () => {
|
||||
const noteIdsToDelete = await sql.getFlattenedResults("SELECT note_id FROM notes WHERE is_deleted = 1");
|
||||
const noteIdsToDelete = await sql.getFirstColumn("SELECT note_id FROM notes WHERE is_deleted = 1");
|
||||
const noteIdsSql = noteIdsToDelete
|
||||
.map(noteId => "'" + utils.sanitizeSql(noteId) + "'")
|
||||
.join(', ');
|
||||
|
||||
Reference in New Issue
Block a user