mirror of
https://github.com/zadam/trilium.git
synced 2024-09-27 11:05:58 +08:00
15 lines
407 B
JavaScript
15 lines
407 B
JavaScript
|
"use strict";
|
||
|
|
||
|
const Entity = require('./entity');
|
||
|
const repository = require('../services/repository');
|
||
|
|
||
|
class NoteImage extends Entity {
|
||
|
static get tableName() { return "note_images"; }
|
||
|
static get primaryKeyName() { return "noteImageId"; }
|
||
|
|
||
|
async getNote() {
|
||
|
return await repository.getEntity("SELECT * FROM notes WHERE noteId = ?", [this.noteId]);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
module.exports = NoteImage;
|