mirror of https://github.com/embarklabs/embark.git
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:
parent
8fa0429f21
commit
1d3c2675aa
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue