refactoring of note update

This commit is contained in:
azivner
2018-03-31 22:15:06 -04:00
parent e8a5d0ae16
commit 5f7e74e15c
7 changed files with 103 additions and 124 deletions

View File

@@ -1,10 +1,15 @@
"use strict";
const Entity = require('./entity');
const utils = require('../services/utils');
class Branch extends Entity {
static get tableName() { return "branches"; }
static get primaryKeyName() { return "branchId"; }
beforeSaving() {
this.dateModified = utils.nowDate()
}
}
module.exports = Branch;