From e00b0ba8cf78e862c4467bc0cd0660cc34003184 Mon Sep 17 00:00:00 2001 From: Geoffroy Lesage Date: Tue, 23 Dec 2014 04:06:24 -0600 Subject: [PATCH] Fixed isActual implemenation --- lib/mysql.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mysql.js b/lib/mysql.js index 3390a56..4dde58e 100644 --- a/lib/mysql.js +++ b/lib/mysql.js @@ -691,10 +691,10 @@ MySQL.prototype.createTable = function (model, cb) { * @param {String[]} [models] A model name or an array of model names. If not present, apply to all models * @param {Function} [cb] The callback function */ -MySQL.prototype.isActual = function(cb) { +MySQL.prototype.isActual = function(models, cb) { var self = this; var ok = false; - async.each(Object.keys(this._models), function(model, done) { + async.each(Object.keys(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) {