diff --git a/tdrive/backend/utils/nextcloud-migration/src/twake_client.ts b/tdrive/backend/utils/nextcloud-migration/src/twake_client.ts index 41ce0652..dc73b1fc 100644 --- a/tdrive/backend/utils/nextcloud-migration/src/twake_client.ts +++ b/tdrive/backend/utils/nextcloud-migration/src/twake_client.ts @@ -127,14 +127,12 @@ export class TwakeDriveClient { } private async client() { - if (!this.clientInstance) { - this.clientInstance = axios.create({ - baseURL: this.config.url, - headers: { - Authorization: `Bearer ${await (this.accessToken())}`, - }, - }); - } + this.clientInstance = axios.create({ + baseURL: this.config.url, + headers: { + Authorization: `Bearer ${await (this.accessToken())}`, + }, + }); return this.clientInstance; }