trilium/src/entities/entity.js

17 lines
308 B
JavaScript
Raw Normal View History

"use strict";
const utils = require('../services/utils');
class Entity {
constructor(repository, row) {
2018-01-30 12:35:36 +08:00
utils.assertArguments(repository, row);
this.repository = repository;
for (const key in row) {
this[key] = row[key];
}
}
}
module.exports = Entity;