trilium/src/entities/note_revision.js

14 lines
364 B
JavaScript
Raw Normal View History

"use strict";
const Entity = require('./entity');
class NoteRevision extends Entity {
2018-01-30 12:35:36 +08:00
static get tableName() { return "note_revisions"; }
2018-01-31 09:12:19 +08:00
static get primaryKeyName() { return "noteRevisionId"; }
2018-01-30 12:35:36 +08:00
async getNote() {
return this.repository.getEntity("SELECT * FROM notes WHERE noteId = ?", [this.noteId]);
}
}
module.exports = NoteRevision;