notes are now soft-deleted

This commit is contained in:
azivner
2017-10-22 22:13:24 -04:00
parent 1cc75ad385
commit 3009c5e15e
5 changed files with 42 additions and 34 deletions

View File

@@ -19,6 +19,7 @@ router.get('/', auth.checkApiAuth, async (req, res, next) => {
+ "from notes_tree "
+ "join notes on notes.note_id = notes_tree.note_id "
+ "left join notes as clone on notes.note_clone_id = clone.note_id "
+ "where notes.is_deleted = 0 "
+ "order by note_pid, note_pos");
const root_notes = [];