renamed db columns to camelCase

This commit is contained in:
azivner
2018-01-28 19:30:14 -05:00
parent 55d8ef7e81
commit 3b1f928fbc
58 changed files with 778 additions and 778 deletions

View File

@@ -9,14 +9,14 @@ const wrap = require('express-promise-wrap').wrap;
router.get('/', auth.checkApiAuth, wrap(async (req, res, next) => {
const recentChanges = await sql.getAll(
`SELECT
notes.is_deleted AS current_is_deleted,
notes.note_title AS current_note_title,
notes.isDeleted AS current_isDeleted,
notes.title AS current_title,
notes_history.*
FROM
notes_history
JOIN notes USING(note_id)
JOIN notes USING(noteId)
ORDER BY
date_modified_to DESC
dateModifiedTo DESC
LIMIT 1000`);
res.send(recentChanges);