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',
|
'description': 'API-Endpunkt zum manuellen Auslösen des Calendar Sync für einen Mitarbeiter',
|
||||||
'path': '/advoware/calendar/sync',
|
'path': '/advoware/calendar/sync',
|
||||||
'method': 'POST',
|
'method': 'POST',
|
||||||
'emits': ['calendar.sync.employee'],
|
'emits': ['calendar_sync_employee'],
|
||||||
'flows': ['advoware']
|
'flows': ['advoware']
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -56,7 +56,7 @@ async def handler(req, context):
|
|||||||
|
|
||||||
# Emit Event für den Sync
|
# Emit Event für den Sync
|
||||||
await context.emit({
|
await context.emit({
|
||||||
"topic": "calendar.sync.employee",
|
"topic": "calendar_sync_employee",
|
||||||
"data": {
|
"data": {
|
||||||
"kuerzel": kuerzel,
|
"kuerzel": kuerzel,
|
||||||
"triggered_by": "api"
|
"triggered_by": "api"
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ config = {
|
|||||||
'name': 'Calendar Sync Cron Job',
|
'name': 'Calendar Sync Cron Job',
|
||||||
'description': 'Führt den Calendar Sync alle 15 Minuten automatisch aus',
|
'description': 'Führt den Calendar Sync alle 15 Minuten automatisch aus',
|
||||||
'cron': '*/15 * * * *', # Alle 15 Minuten
|
'cron': '*/15 * * * *', # Alle 15 Minuten
|
||||||
'emits': ['calendar.sync.employee'],
|
'emits': ['calendar_sync_employee'],
|
||||||
'flows': ['advoware']
|
'flows': ['advoware']
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -52,7 +52,7 @@ async def handler(context):
|
|||||||
|
|
||||||
# Emit event for this employee
|
# Emit event for this employee
|
||||||
await context.emit({
|
await context.emit({
|
||||||
"topic": "calendar.sync.employee",
|
"topic": "calendar_sync_employee",
|
||||||
"data": {
|
"data": {
|
||||||
"kuerzel": kuerzel,
|
"kuerzel": kuerzel,
|
||||||
"triggered_by": "cron"
|
"triggered_by": "cron"
|
||||||
|
|||||||
@@ -977,7 +977,7 @@ config = {
|
|||||||
"type": "event",
|
"type": "event",
|
||||||
"name": "Calendar Sync Event Step",
|
"name": "Calendar Sync Event Step",
|
||||||
"description": "Handles bidirectional calendar sync between Advoware and Google Calendar using Postgres as hub",
|
"description": "Handles bidirectional calendar sync between Advoware and Google Calendar using Postgres as hub",
|
||||||
"subscribes": ["calendar.sync.employee"],
|
"subscribes": ["calendar_sync_employee"],
|
||||||
"emits": [],
|
"emits": [],
|
||||||
"flows": ["advoware"]
|
"flows": ["advoware"]
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user