update user on konviva

This commit is contained in:
2025-07-18 13:05:03 -03:00
parent 61e7ac0f4b
commit 64946471b9
6 changed files with 94 additions and 6 deletions

View File

@@ -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(