repository is now stateless

This commit is contained in:
azivner
2018-03-31 09:07:58 -04:00
parent 05676f3459
commit 088fb00ca9
9 changed files with 87 additions and 98 deletions

View File

@@ -3,10 +3,8 @@
const utils = require('../services/utils');
class Entity {
constructor(repository, row) {
utils.assertArguments(repository, row);
this.repository = repository;
constructor(row) {
utils.assertArguments(row);
for (const key in row) {
this[key] = row[key];