migration script to camel case

This commit is contained in:
azivner
2018-01-28 20:52:05 -05:00
parent c558b7c506
commit 75878c80a8
14 changed files with 258 additions and 19 deletions

View File

@@ -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');

View File

@@ -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());

View File

@@ -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')
});
}));