Change event topic to calendar_sync_employee without dots to fix INVALID EMIT
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user