mirror of
https://github.com/zadam/trilium.git
synced 2025-11-05 12:55:55 +01:00
refactored backend to use new naming convention for modules
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
const repository = require('../../services/repository');
|
||||
const utils = require('../../services/utils');
|
||||
const options = require('../../services/options');
|
||||
const optionService = require('../../services/options');
|
||||
const RecentNote = require('../../entities/recent_note');
|
||||
|
||||
async function getRecentNotes() {
|
||||
@@ -33,7 +33,7 @@ async function addRecentNote(req) {
|
||||
|
||||
await recentNote.save();
|
||||
|
||||
await options.setOption('start_note_path', notePath);
|
||||
await optionService.setOption('start_note_path', notePath);
|
||||
|
||||
return await getRecentNotes();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user