Add flows to API and cron steps to fix INVALID EMIT error
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user