diff --git a/cloudron.js b/cloudron.js index 9b94e93..cc8a773 100644 --- a/cloudron.js +++ b/cloudron.js @@ -800,7 +800,7 @@ Cloudron.prototype.checkNginxRateLimit = function (owner, times, 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'); }; diff --git a/test/selfhost-digitalocean-filesystem-test.js b/test/selfhost-digitalocean-filesystem-test.js index 07b69cc..34f0629 100644 --- a/test/selfhost-digitalocean-filesystem-test.js +++ b/test/selfhost-digitalocean-filesystem-test.js @@ -238,11 +238,10 @@ describe('Selfhost DigitalOcean with filesystem backend', function () { cloudron.checkAddons(cloudron.appFqdn(location), owner); }); - it('can set appstore config', function (done) { + it('can set appstore config', function () { var token = appStore.getAccessToken(owner); appStore.setCredentials(owner.password, token); var profile = appStore.getProfile(); - console.dir(profile); cloudron.setAppstoreConfig(profile.id, token); });