Notes/src/routes/api/note_revisions.js

12 lines
327 B
JavaScript
Raw Normal View History

2017-10-21 21:10:33 -04:00
"use strict";
const repository = require('../../services/repository');
async function getNoteRevisions(req) {
const noteId = req.params.noteId;
2019-03-12 20:58:31 +01:00
return await repository.getEntities("SELECT * FROM note_revisions WHERE noteId = ? order by utcDateModifiedTo desc", [noteId]);
}
module.exports = {
getNoteRevisions
};