From 2a3f57bc61740edd533304086dfdfb5486c6b903 Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Mon, 29 Sep 2025 22:12:49 +0200 Subject: [PATCH] fix onedrive --- src/lib/utils/onedrive-file-picker.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lib/utils/onedrive-file-picker.ts b/src/lib/utils/onedrive-file-picker.ts index e55882e081..78477e80db 100644 --- a/src/lib/utils/onedrive-file-picker.ts +++ b/src/lib/utils/onedrive-file-picker.ts @@ -3,7 +3,8 @@ import { v4 as uuidv4 } from 'uuid'; class OneDriveConfig { private static instance: OneDriveConfig; - private clientId: string = ''; + private clientIdPersonal: string = ''; + private clientIdBusiness: string = ''; private sharepointUrl: string = ''; private sharepointTenantId: string = ''; private msalInstance: PublicClientApplication | null = null; @@ -49,8 +50,8 @@ class OneDriveConfig { this.sharepointUrl = config.onedrive?.sharepoint_url; this.sharepointTenantId = config.onedrive?.sharepoint_tenant_id; - if (!this.newClientIdPersonal && !this.newClientIdBusiness) { - throw new Error('OneDrive client ID not configured'); + if (!this.clientIdPersonal && !this.clientIdBusiness) { + throw new Error('OneDrive personal or business client ID not configured'); } }