fix(@embark/embark-storage): Fix embark not running

The Embark process was crashing due to an config object not existing on `this`.

This PR references the correct config object.
This commit is contained in:
emizzle 2019-07-28 14:12:03 +10:00
parent 8fa0429f21
commit 1d3c2675aa
No known key found for this signature in database
GPG Key ID: 1FD4BAB3C37EE9BA
1 changed files with 2 additions and 2 deletions

View File

@ -62,13 +62,13 @@ class Storage {
async.parallel([
(next) => {
if (!this.storageConfig.available_providers.includes('ipfs')) {
if (!this.embark.config.storageConfig.available_providers.includes('ipfs')) {
return next();
}
this.embark.events.once('ipfs:process:started', next);
},
(next) => {
if (!this.storageConfig.available_providers.includes('swarm')) {
if (!this.embark.config.storageConfig.available_providers.includes('swarm')) {
return next();
}
this.embark.events.once('swarm:process:started', next);