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