diff --git a/src/Model/mutators.ts b/src/Model/mutators.ts index 76365e70..789659b2 100644 --- a/src/Model/mutators.ts +++ b/src/Model/mutators.ts @@ -410,7 +410,7 @@ Model.prototype.addPromised = promisify(Model.prototype.add); Model.prototype._add = function(segments, value, cb) { if (typeof value !== 'object') { - var message = 'add requires an object value. Invalid value: ' + value; + let message = 'add requires an object value. Invalid value: ' + value; cb = this.wrapCallback(cb); cb(new Error(message)); return;