diff --git a/lib/datasource.js b/lib/datasource.js index 42e4660d..e88605c2 100644 --- a/lib/datasource.js +++ b/lib/datasource.js @@ -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(); }