fix onedrive

This commit is contained in:
Classic298 2025-09-29 22:12:49 +02:00 committed by GitHub
parent 5438eb0057
commit 2a3f57bc61
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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');
}
}