Files
Trilium/src/entities/entity.js
2018-01-29 23:17:44 -05:00

17 lines
307 B
JavaScript

"use strict";
const utils = require('../services/utils');
class Entity {
constructor(repository, row) {
utils.assertArguments(repository, row)
this.repository = repository;
for (const key in row) {
this[key] = row[key];
}
}
}
module.exports = Entity;