mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 10:55:55 +01:00
added foreign keys to relations to guarantee data consistency
This commit is contained in:
@@ -19,7 +19,7 @@ router.get('/', auth.checkApiAuth, async (req, res, next) => {
|
||||
+ "FROM notes_tree "
|
||||
+ "JOIN notes ON notes.note_id = notes_tree.note_id "
|
||||
+ "WHERE notes.is_deleted = 0 AND notes_tree.is_deleted = 0 "
|
||||
+ "ORDER BY note_pos");
|
||||
+ "ORDER BY note_position");
|
||||
|
||||
const dataKey = protected_session.getDataKey(req);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user