smaller refactorings

This commit is contained in:
azivner
2018-04-02 22:53:01 -04:00
parent a4e64350e9
commit 42dd8d4754
11 changed files with 32 additions and 69 deletions

View File

@@ -24,14 +24,12 @@ async function addRecentNote(req) {
const branchId = req.params.branchId;
const notePath = req.params.notePath;
const recentNote = new RecentNote({
await new RecentNote({
branchId: branchId,
notePath: notePath,
dateAccessed: dateUtils.nowDate(),
isDeleted: 0
});
await recentNote.save();
}).save();
await optionService.setOption('startNotePath', notePath);