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

Commit 6e34fa59 by Jan Aagaard Meier

Fix check for force true in sync

1 parent bb6650d2
Showing with 6 additions and 2 deletions
......@@ -387,7 +387,7 @@ module.exports = (function() {
// Topologically sort by foreign key constraints to give us an appropriate
// creation order
if (this.options.force) {
if (options.force) {
chainer.add(this, 'drop')
}
......@@ -408,7 +408,11 @@ module.exports = (function() {
return new Utils.CustomEventEmitter(function(emitter) {
var chainer = new Utils.QueryChainer()
self.daoFactoryManager.forEachDAO(function(dao) { chainer.add(dao, 'drop', []) }, { reverse: false})
self.daoFactoryManager.forEachDAO(function(dao) {
if (dao) {
chainer.add(dao, 'drop', [])
}
}, { reverse: false})
chainer
.runSerially()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!