Declare `definition`
Declare `definition` in `BelongsTo.prototype.destroy`
This commit is contained in:
parent
a22ff61af2
commit
8d4c577032
|
@ -1366,9 +1366,10 @@ BelongsTo.prototype.destroy = function(options, cb) {
|
||||||
cb = options;
|
cb = options;
|
||||||
options = {};
|
options = {};
|
||||||
}
|
}
|
||||||
var modelTo = this.definition.modelTo;
|
|
||||||
|
var definition = this.definition;
|
||||||
var modelInstance = this.modelInstance;
|
var modelInstance = this.modelInstance;
|
||||||
var fk = this.definition.keyFrom;
|
var fk = definition.keyFrom;
|
||||||
|
|
||||||
cb = cb || utils.createPromiseCallback();
|
cb = cb || utils.createPromiseCallback();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue