mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 11:56:01 +01:00
smaller refactorings
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user