This commit is contained in:
Girish Ramakrishnan 2017-04-15 08:45:07 -07:00
parent 728b12f866
commit 76860770f1
2 changed files with 2 additions and 3 deletions

View File

@ -800,7 +800,7 @@ Cloudron.prototype.checkNginxRateLimit = function (owner, times, callback) {
}; };
Cloudron.prototype.setAppstoreConfig = function (id, token, callback) { Cloudron.prototype.setAppstoreConfig = function (id, token, callback) {
var res = request.post('https://' + that._adminFqdn + '/api/v1/settings/appstore_config').send({ userId: id, token: token }).end(); var res = request.post('https://' + this._adminFqdn + '/api/v1/settings/appstore_config').send({ userId: id, token: token }).end();
common.verifyResponse2xx(res, 'Could not set appstore config'); common.verifyResponse2xx(res, 'Could not set appstore config');
}; };

View File

@ -238,11 +238,10 @@ describe('Selfhost DigitalOcean with filesystem backend', function () {
cloudron.checkAddons(cloudron.appFqdn(location), owner); cloudron.checkAddons(cloudron.appFqdn(location), owner);
}); });
it('can set appstore config', function (done) { it('can set appstore config', function () {
var token = appStore.getAccessToken(owner); var token = appStore.getAccessToken(owner);
appStore.setCredentials(owner.password, token); appStore.setCredentials(owner.password, token);
var profile = appStore.getProfile(); var profile = appStore.getProfile();
console.dir(profile);
cloudron.setAppstoreConfig(profile.id, token); cloudron.setAppstoreConfig(profile.id, token);
}); });