Fix path to ecosystem-staging.json
This commit is contained in:
parent
996f529cbb
commit
12f5c7c689
@ -17,7 +17,11 @@ function AppStore(origin) {
|
|||||||
accessToken: null
|
accessToken: null
|
||||||
};
|
};
|
||||||
|
|
||||||
this._ecosystem = require(path.join(__dirname, '..', 'keys', 'appstore', 'ecosystem-staging.json'));
|
if (fs.existsSync(path.join(__dirname, 'ecosystem-staging.json'))) {
|
||||||
|
this._ecosystem = require(path.join(__dirname, 'ecosystem-staging.json')); // staging appstore
|
||||||
|
} else {
|
||||||
|
this._ecosystem = require(path.join(__dirname, '..', 'keys', 'appstore', 'ecosystem-staging.json'));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function verifyResponse(res, errorMessage) {
|
function verifyResponse(res, errorMessage) {
|
||||||
|
Loading…
Reference in New Issue
Block a user