Declare `definition`
* Declare `definition` in `BelongsTo.prototype.destroy` Backport loopback-datasource-juggler#1009
This commit is contained in:
parent
f1a70094fa
commit
69cc091ef4
|
@ -1364,9 +1364,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