trilium/src/routes/api/note_revisions.js
2018-04-01 11:05:09 -04:00

12 lines
No EOL
324 B
JavaScript

"use strict";
const repository = require('../../services/repository');
async function getNoteRevisions(req) {
const noteId = req.params.noteId;
return await repository.getEntities("SELECT * FROM note_revisions WHERE noteId = ? order by dateModifiedTo desc", [noteId]);
}
module.exports = {
getNoteRevisions
};