mirror of
https://github.com/zadam/trilium.git
synced 2025-11-11 15:55:52 +01:00
migration script to camel case
This commit is contained in:
@@ -4,7 +4,7 @@ const express = require('express');
|
||||
const router = express.Router();
|
||||
const options = require('../../services/options');
|
||||
const utils = require('../../services/utils');
|
||||
const sourceId = require('../../services/sourceId');
|
||||
const sourceId = require('../../services/source_id');
|
||||
const auth = require('../../services/auth');
|
||||
const password_encryption = require('../../services/password_encryption');
|
||||
const protected_session = require('../../services/protected_session');
|
||||
|
||||
@@ -28,7 +28,7 @@ router.put('/:noteTreeId/:notePath', auth.checkApiAuth, wrap(async (req, res, ne
|
||||
|
||||
await sync_table.addRecentNoteSync(noteTreeId, sourceId);
|
||||
|
||||
await options.setOption('start_notePath', notePath, sourceId);
|
||||
await options.setOption('start_note_path', notePath, sourceId);
|
||||
});
|
||||
|
||||
res.send(await getRecentNotes());
|
||||
|
||||
@@ -31,7 +31,7 @@ router.get('/', auth.checkApiAuth, wrap(async (req, res, next) => {
|
||||
|
||||
res.send({
|
||||
notes: notes,
|
||||
start_notePath: await options.getOption('start_notePath')
|
||||
start_note_path: await options.getOption('start_note_path')
|
||||
});
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user