mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
created repository object to access entities
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
"use strict";
|
||||
|
||||
const utils = require('../services/utils');
|
||||
|
||||
class Entity {
|
||||
constructor(sql, row) {
|
||||
this.sql = sql;
|
||||
constructor(repository, row) {
|
||||
utils.assertArguments(repository, row)
|
||||
|
||||
this.repository = repository;
|
||||
|
||||
for (const key in row) {
|
||||
this[key] = row[key];
|
||||
|
||||
Reference in New Issue
Block a user