unify audit fields, fixes #102

This commit is contained in:
azivner
2018-05-26 12:38:25 -04:00
parent 933cce1b94
commit 03bf33630e
9 changed files with 56 additions and 11 deletions

View File

@@ -16,7 +16,7 @@ async function getRecentNotes() {
recent_notes.isDeleted = 0
AND branches.isDeleted = 0
ORDER BY
dateAccessed DESC
dateCreated DESC
LIMIT 200`);
}
@@ -26,9 +26,7 @@ async function addRecentNote(req) {
await new RecentNote({
branchId: branchId,
notePath: notePath,
dateAccessed: dateUtils.nowDate(),
isDeleted: 0
notePath: notePath
}).save();
await optionService.setOption('startNotePath', notePath);