Skip to content

Commit

Permalink
🐛 fix circular dependency in new bootUp script
Browse files Browse the repository at this point in the history
closes #7440
  • Loading branch information
kirrg001 committed Sep 27, 2016
1 parent 1a93cfd commit d0356a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/server/data/schema/bootup.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var Promise = require('bluebird'),
versioning = require('./versioning'),
migrations = require('../migration'),
populate = require('../migration/populate'),
errors = require('./../../errors');

module.exports = function bootUp() {
Expand All @@ -19,7 +19,7 @@ module.exports = function bootUp() {
// We don't use .catch here, as it would catch the error from the successHandler
function errorHandler(err) {
if (err instanceof errors.DatabaseNotPopulated) {
return migrations.populate();
return populate();
}

return Promise.reject(err);
Expand Down

0 comments on commit d0356a2

Please sign in to comment.