Fix the delegation for discover
This commit is contained in:
parent
26230be417
commit
fcdd8c2bca
|
@ -290,7 +290,7 @@ DataSource.prototype.discoverModels = function (options, cb) {
|
||||||
DataSource.prototype.discoverModelProperties = function (owner, table, cb) {
|
DataSource.prototype.discoverModelProperties = function (owner, table, cb) {
|
||||||
this.freeze();
|
this.freeze();
|
||||||
if (this.adapter.discoverModelProperties) {
|
if (this.adapter.discoverModelProperties) {
|
||||||
this.adapter.discoverModelProperties(options, cb);
|
this.adapter.discoverModelProperties(owner, table, cb);
|
||||||
} else if (cb) {
|
} else if (cb) {
|
||||||
cb();
|
cb();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue