0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

🐛 fix circular dependency in new bootUp script

closes #7440
This commit is contained in:
kirrg001 2016-09-27 12:18:45 +02:00
parent 1a93cfd67e
commit d0356a257e

View file

@ -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() {
@ -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);