add postgres

This commit is contained in:
2025-08-26 00:00:42 -03:00
parent 1326530991
commit e33eccebb9
43 changed files with 622 additions and 636 deletions

View File

@@ -39,7 +39,7 @@ def lambda_handler(event: EventBridgeEvent, context: LambdaContext) -> bool:
user_id = glom(result, '0.IDUsuario')
if not result:
raise UserNotFoundError()
raise UserNotFoundError('User not found')
except Exception:
raise
@@ -47,7 +47,7 @@ def lambda_handler(event: EventBridgeEvent, context: LambdaContext) -> bool:
transact.update(
key=KeyPair(new_image['id'], '0'),
update_expr='SET metadata__konviva_user_id = :user_id, \
updated_at = :updated_at',
updated_at = :updated_at',
expr_attr_values={
':user_id': user_id,
':updated_at': now_,