mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
basic entity support with lazy loaded relations
This commit is contained in:
11
src/entities/note_revision.js
Normal file
11
src/entities/note_revision.js
Normal file
@@ -0,0 +1,11 @@
|
||||
"use strict";
|
||||
|
||||
const Entity = require('./entity');
|
||||
|
||||
class NoteRevision extends Entity {
|
||||
async getNote() {
|
||||
return this.sql.getEntity("SELECT * FROM notes WHERE noteId = ?", [this.noteId]);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = NoteRevision;
|
||||
Reference in New Issue
Block a user