Fix bug
This commit is contained in:
parent
728b12f866
commit
76860770f1
@ -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');
|
||||
};
|
||||
|
||||
|
@ -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);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user