note revision sync and other fixes

This commit is contained in:
zadam
2019-11-01 20:00:56 +01:00
parent 5c05963bd9
commit 2e58e32112
9 changed files with 177 additions and 117 deletions

View File

@@ -14,11 +14,11 @@ async function getNoteRevisions(req) {
}
async function getNoteRevision(req) {
const {noteRevisionId} = req.params;
const noteRevision = await repository.getNoteRevision(req.params.noteRevisionId);
return await repository.getNote(`SELECT *
FROM note_revisions
WHERE noteRevisionId = ?`, [noteId]);
await noteRevision.getContent();
return noteRevision;
}
async function getEditedNotesOnDate(req) {