mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-09-19 06:28:39 +03:00
community: fixed typo in event-triggers boilerplate (#5222)
This commit is contained in:
parent
af452de754
commit
636dc6299f
@ -19,7 +19,7 @@ def lambda_handler(event, context):
|
||||
elif body['table']['name'] == 'notes' and body['event']['op'] == 'UPDATE':
|
||||
message = 'Note {} updated, with data: {}'.format(data['new']['id'], data['new']['note'])
|
||||
|
||||
elif body['table'] == 'notes' and body['op'] == 'DELETE':
|
||||
elif body['table'] == 'notes' and body['event']['op'] == 'DELETE':
|
||||
message = 'Note {} deleted, with data: {}'.format(data['old']['id'], data['old']['note'])
|
||||
return {
|
||||
"statusCode": 200,
|
||||
|
Loading…
Reference in New Issue
Block a user