diff --git a/lib/relation-definition.js b/lib/relation-definition.js index d11e5c6c..61e18729 100644 --- a/lib/relation-definition.js +++ b/lib/relation-definition.js @@ -1366,9 +1366,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();