From 9ca3191542391cebe3d20e708c14ca94af118994 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 24 Oct 2025 00:22:51 +0000 Subject: [PATCH] Add flows to API and cron steps to fix INVALID EMIT error --- bitbylaw/steps/advoware_cal_sync/calendar_sync_api_step.py | 3 ++- bitbylaw/steps/advoware_cal_sync/calendar_sync_cron_step.py | 3 ++- 2 files changed, 4 insertions(+), 2 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 80053af7..30865e67 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,8 @@ 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'] } async def handler(req, context): 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 bdb26f4e..c6a6009a 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,8 @@ 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'] } async def get_advoware_employees(advoware):