From dac9ffc473ddab6e6ef771dce7d7e1c0fd569b3d Mon Sep 17 00:00:00 2001 From: kirrg001 Date: Thu, 14 Dec 2017 01:40:15 +0100 Subject: [PATCH] Removed leftover usages for globalUtils.sequence refs #9178 --- core/server/data/importer/importers/data/index.js | 4 ++-- core/server/utils/index.js | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/core/server/data/importer/importers/data/index.js b/core/server/data/importer/importers/data/index.js index 20bdeec18a..3fbe61e2c3 100644 --- a/core/server/data/importer/importers/data/index.js +++ b/core/server/data/importer/importers/data/index.js @@ -1,7 +1,7 @@ var _ = require('lodash'), Promise = require('bluebird'), + sequence = require('../../../../lib/promise/sequence'), models = require('../../../../models'), - globalUtils = require('../../../../utils'), SubscribersImporter = require('./subscribers'), PostsImporter = require('./posts'), TagsImporter = require('./tags'), @@ -65,7 +65,7 @@ DataImporter = { }); }); - globalUtils.sequence(ops) + sequence(ops) .then(function () { results.forEach(function (promise) { if (!promise.isFulfilled()) { diff --git a/core/server/utils/index.js b/core/server/utils/index.js index 42d2daeecd..48e2e446d6 100644 --- a/core/server/utils/index.js +++ b/core/server/utils/index.js @@ -134,7 +134,6 @@ utils = { readCSV: require('./read-csv'), zipFolder: require('./zip-folder'), tokens: require('./tokens'), - sequence: require('../lib/promise/sequence'), ghostVersion: require('./ghost-version'), mobiledocConverter: require('./mobiledoc-converter'), markdownConverter: require('./markdown-converter')