不要怂,就是干,撸起袖子干!

Commit 354ff0fd by Mick Hansen

modelManager.instances > modelManager.models

1 parent 42e6cb5a
Showing with 1 additions and 1 deletions
...@@ -126,7 +126,7 @@ module.exports = (function() { ...@@ -126,7 +126,7 @@ module.exports = (function() {
return Promise.all(promises).then(function(results) { return Promise.all(promises).then(function(results) {
var promises = [] var promises = []
, instanceTable = self.sequelize.modelManager.instances.filter(function(instance) { return instance.tableName === tableName; }) , instanceTable = self.sequelize.modelManager.models.filter(function(instance) { return instance.tableName === tableName; })
, enumIdx = 0; , enumIdx = 0;
instanceTable = instanceTable.length > 0 ? instanceTable[0] : null; instanceTable = instanceTable.length > 0 ? instanceTable[0] : null;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!