add postgres
This commit is contained in:
@@ -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_,
|
||||
|
||||
Reference in New Issue
Block a user