diff --git a/bitbylaw/steps/advoware_cal_sync/advoware_calendar_sync_step.py b/bitbylaw/steps/advoware_cal_sync/advoware_calendar_sync_step.py index c934549f..2e163722 100644 --- a/bitbylaw/steps/advoware_cal_sync/advoware_calendar_sync_step.py +++ b/bitbylaw/steps/advoware_cal_sync/advoware_calendar_sync_step.py @@ -22,7 +22,7 @@ config = { SCOPES = ['https://www.googleapis.com/auth/calendar'] -async def get_google_service(): +async def get_google_service(context): """Initialisiert Google Calendar API Service""" creds = None @@ -236,7 +236,7 @@ async def handler(req, context): context.logger.info(f"Starte Advoware Calendar Sync, full_content: {full_content}") # Google Calendar Service initialisieren - service = await get_google_service() + service = await get_google_service(context) if not service: context.logger.warning("Google Calendar Service nicht verfügbar. Sync wird übersprungen.") return { diff --git a/bitbylaw/types.d.ts b/bitbylaw/types.d.ts index 6bdc92ee..78a0fc70 100644 --- a/bitbylaw/types.d.ts +++ b/bitbylaw/types.d.ts @@ -24,5 +24,6 @@ declare module 'motia' { 'Advoware Proxy POST': ApiRouteHandler, unknown, never> 'Advoware Proxy GET': ApiRouteHandler, unknown, never> 'Advoware Proxy DELETE': ApiRouteHandler, unknown, never> + 'Advoware Calendar Sync': ApiRouteHandler, unknown, never> } } \ No newline at end of file