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) {
|
||||
this.freeze();
|
||||
if (this.adapter.discoverModelProperties) {
|
||||
this.adapter.discoverModelProperties(options, cb);
|
||||
this.adapter.discoverModelProperties(owner, table, cb);
|
||||
} else if (cb) {
|
||||
cb();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue