Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions alta_open_lambda/lambda_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,14 @@ def lambda_handler(event: dict, _: dict) -> None:
if not (event_trigger := neon_response.get("eventTrigger")):
return

# This will be read as a string, not a boolean. Since we're only using this
# as a temporary measure to migrate off the legacy webhooks, I don't think
# we need to worry about casting into the correct data type.
legacy = neon_response.get('customParameters', {}).get('legacy')
if legacy is not None and legacy == 'true':
logger.warning('LEGACY EVENT DETECTED')
logger.warning('This type of webhook will be deprecated soon - please update your webhook.')

neon_id = None

match event_trigger:
Expand Down
Loading