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