trilium/src/entities/entity.js
2018-01-29 23:35:36 -05:00

17 lines
308 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;