diff --git a/lib/relation-definition.js b/lib/relation-definition.js index 7e33b814..f41ca72e 100644 --- a/lib/relation-definition.js +++ b/lib/relation-definition.js @@ -1364,9 +1364,10 @@ BelongsTo.prototype.destroy = function(options, cb) { cb = options; options = {}; } - var modelTo = this.definition.modelTo; + + var definition = this.definition; var modelInstance = this.modelInstance; - var fk = this.definition.keyFrom; + var fk = definition.keyFrom; cb = cb || utils.createPromiseCallback();