fix renew token with multiple servers

This commit is contained in:
Beu 2021-09-20 20:06:46 +02:00
parent c3b20841c9
commit 8989054aa1
1 changed files with 2 additions and 1 deletions

View File

@ -35,7 +35,7 @@ class MatchManagerGSheet implements CallbackListener, CommandListener, Plugin {
* Constants
*/
const PLUGIN_ID = 156;
const PLUGIN_VERSION = 0.4;
const PLUGIN_VERSION = 0.5;
const PLUGIN_NAME = 'MatchManager GSheet';
const PLUGIN_AUTHOR = 'Beu';
@ -287,6 +287,7 @@ class MatchManagerGSheet implements CallbackListener, CommandListener, Plugin {
private function refreshTokenIfNeeded() {
Logger::Log('refreshTokenIfNeeded');
$this->access_token = $this->getSecretSetting("access_token");
$expire = $this->getSecretSetting("expire");
$refreshtoken = $this->getSecretSetting("refresh_token");
$clientid = $this->maniaControl->getSettingManager()->getSettingValue($this, self::SETTING_MATCHMANAGERGSHEET_CLIENT_ID);