From d18187f3aa2a4310e5a10b0f4d4be37744d27299 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 24 Oct 2025 00:29:09 +0000 Subject: [PATCH] Change event topic to calendar_sync_employee without dots to fix INVALID EMIT --- bitbylaw/steps/advoware_cal_sync/calendar_sync_api_step.py | 4 ++-- bitbylaw/steps/advoware_cal_sync/calendar_sync_cron_step.py | 4 ++-- bitbylaw/steps/advoware_cal_sync/calendar_sync_event_step.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bitbylaw/steps/advoware_cal_sync/calendar_sync_api_step.py b/bitbylaw/steps/advoware_cal_sync/calendar_sync_api_step.py index 30865e67..8886625e 100644 --- a/bitbylaw/steps/advoware_cal_sync/calendar_sync_api_step.py +++ b/bitbylaw/steps/advoware_cal_sync/calendar_sync_api_step.py @@ -8,7 +8,7 @@ config = { 'description': 'API-Endpunkt zum manuellen Auslösen des Calendar Sync für einen Mitarbeiter', 'path': '/advoware/calendar/sync', 'method': 'POST', - 'emits': ['calendar.sync.employee'], + 'emits': ['calendar_sync_employee'], 'flows': ['advoware'] } @@ -56,7 +56,7 @@ async def handler(req, context): # Emit Event für den Sync await context.emit({ - "topic": "calendar.sync.employee", + "topic": "calendar_sync_employee", "data": { "kuerzel": kuerzel, "triggered_by": "api" diff --git a/bitbylaw/steps/advoware_cal_sync/calendar_sync_cron_step.py b/bitbylaw/steps/advoware_cal_sync/calendar_sync_cron_step.py index c6a6009a..03ca6719 100644 --- a/bitbylaw/steps/advoware_cal_sync/calendar_sync_cron_step.py +++ b/bitbylaw/steps/advoware_cal_sync/calendar_sync_cron_step.py @@ -10,7 +10,7 @@ config = { 'name': 'Calendar Sync Cron Job', 'description': 'Führt den Calendar Sync alle 15 Minuten automatisch aus', 'cron': '*/15 * * * *', # Alle 15 Minuten - 'emits': ['calendar.sync.employee'], + 'emits': ['calendar_sync_employee'], 'flows': ['advoware'] } @@ -52,7 +52,7 @@ async def handler(context): # Emit event for this employee await context.emit({ - "topic": "calendar.sync.employee", + "topic": "calendar_sync_employee", "data": { "kuerzel": kuerzel, "triggered_by": "cron" diff --git a/bitbylaw/steps/advoware_cal_sync/calendar_sync_event_step.py b/bitbylaw/steps/advoware_cal_sync/calendar_sync_event_step.py index 4342ce24..c4fc4aed 100644 --- a/bitbylaw/steps/advoware_cal_sync/calendar_sync_event_step.py +++ b/bitbylaw/steps/advoware_cal_sync/calendar_sync_event_step.py @@ -977,7 +977,7 @@ config = { "type": "event", "name": "Calendar Sync Event Step", "description": "Handles bidirectional calendar sync between Advoware and Google Calendar using Postgres as hub", - "subscribes": ["calendar.sync.employee"], + "subscribes": ["calendar_sync_employee"], "emits": [], "flows": ["advoware"] } \ No newline at end of file