trilium/src/routes/api/note_revisions.js

12 lines
327 B
JavaScript
Raw Normal View History

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