Fix the loop of models

This commit is contained in:
Raymond Feng 2015-01-15 14:21:49 -08:00
parent 0116dbfa1c
commit 8b860890e8
1 changed files with 1 additions and 1 deletions

View File

@ -705,7 +705,7 @@ MySQL.prototype.isActual = function(models, cb) {
models = models || Object.keys(this._models);
async.each(Object.keys(models), function(model, done) {
async.each(models, function(model, done) {
var table = self.tableEscaped(model);
self.query('SHOW FIELDS FROM ' + table, function(err, fields) {
self.query('SHOW INDEXES FROM ' + table, function(err, indexes) {