mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 09:56:36 +01:00
15 lines
426 B
JavaScript
15 lines
426 B
JavaScript
"use strict";
|
|
|
|
const Entity = require('./entity');
|
|
|
|
class NoteTree extends Entity {
|
|
async getNote() {
|
|
return this.repository.getEntity("SELECT * FROM note_tree WHERE isDeleted = 0 AND noteId = ?", [this.noteId]);
|
|
}
|
|
|
|
async getParentNote() {
|
|
return this.repository.getEntity("SELECT * FROM note_tree WHERE isDeleted = 0 AND parentNoteId = ?", [this.parentNoteId]);
|
|
}
|
|
}
|
|
|
|
module.exports = NoteTree; |