set access_token

This commit is contained in:
Girish Ramakrishnan 2017-04-15 09:04:31 -07:00
parent 76860770f1
commit a1b9b39263

View File

@ -800,7 +800,10 @@ Cloudron.prototype.checkNginxRateLimit = function (owner, times, callback) {
};
Cloudron.prototype.setAppstoreConfig = function (id, token, callback) {
var res = request.post('https://' + this._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 })
.query({ access_token: this._credentials.accessToken })
.end();
common.verifyResponse2xx(res, 'Could not set appstore config');
};