mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
14 lines
364 B
JavaScript
14 lines
364 B
JavaScript
"use strict";
|
|
|
|
const Entity = require('./entity');
|
|
|
|
class NoteRevision extends Entity {
|
|
static get tableName() { return "note_revisions"; }
|
|
static get primaryKeyName() { return "noteRevisionId"; }
|
|
|
|
async getNote() {
|
|
return this.repository.getEntity("SELECT * FROM notes WHERE noteId = ?", [this.noteId]);
|
|
}
|
|
}
|
|
|
|
module.exports = NoteRevision; |