mirror of
https://github.com/zadam/trilium.git
synced 2024-11-17 13:14:44 +08:00
12 lines
No EOL
324 B
JavaScript
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
|
|
}; |