mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-01-04 11:59:54 -06:00
14 lines
335 B
JavaScript
14 lines
335 B
JavaScript
"use strict";
|
|
|
|
const Entity = require('./entity');
|
|
|
|
class Label extends Entity {
|
|
static get tableName() { return "labels"; }
|
|
static get primaryKeyName() { return "labelId"; }
|
|
|
|
async getNote() {
|
|
return this.repository.getEntity("SELECT * FROM notes WHERE noteId = ?", [this.noteId]);
|
|
}
|
|
}
|
|
|
|
module.exports = Label; |