update user on konviva
This commit is contained in:
@@ -36,7 +36,7 @@ def record_handler(record: DynamoDBRecord):
|
||||
new_image: dict = record.dynamodb.new_image # type: ignore
|
||||
old_image: dict = record.dynamodb.old_image # type: ignore
|
||||
record_ttl: int | None = old_image.get('ttl')
|
||||
modified = diff(new_image, old_image)
|
||||
changes = diff(new_image, old_image)
|
||||
now_ = now()
|
||||
|
||||
# Should be EXPIRE if event is REMOVE and TTL has elapsed
|
||||
@@ -51,7 +51,9 @@ def record_handler(record: DynamoDBRecord):
|
||||
'keys': record.dynamodb.keys, # type: ignore
|
||||
'new_image': new_image,
|
||||
'old_image': old_image,
|
||||
'modified': modified,
|
||||
'changes': changes,
|
||||
# Post-migration: remove the following line
|
||||
'modified': changes,
|
||||
}
|
||||
|
||||
result = client.put_events(
|
||||
|
||||
Reference in New Issue
Block a user