trilium/src/routes/api/note_revisions.js
2019-03-12 20:58:31 +01:00

12 lines
No EOL
327 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 utcDateModifiedTo desc", [noteId]);
}
module.exports = {
getNoteRevisions
};