small fixes

This commit is contained in:
zadam
2021-12-21 13:22:13 +01:00
parent b30792a3da
commit 1e8472266f
4 changed files with 13 additions and 3 deletions

View File

@@ -258,7 +258,8 @@ class ConsistencyChecks {
FROM branches
WHERE noteId = ?
and parentNoteId = ?
and isDeleted = 0`, [noteId, parentNoteId]);
and isDeleted = 0
ORDER BY utcDateCreated`, [noteId, parentNoteId]);
const branches = branchIds.map(branchId => becca.getBranch(branchId));