Merge branch 'master' of github.com:1602/jugglingdb
This commit is contained in:
commit
3dc24b8f51
|
@ -721,6 +721,8 @@ AbstractClass.prototype.updateAttributes = function updateAttributes(data, cb) {
|
|||
var inst = this;
|
||||
var model = this.constructor.modelName;
|
||||
|
||||
if(!data) data = {};
|
||||
|
||||
// update instance's properties
|
||||
Object.keys(data).forEach(function (key) {
|
||||
inst[key] = data[key];
|
||||
|
|
Loading…
Reference in New Issue