diff --git a/lib/abstract-class.js b/lib/abstract-class.js index 708af0c2..ba8c9545 100644 --- a/lib/abstract-class.js +++ b/lib/abstract-class.js @@ -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];