fix menu
This commit is contained in:
@@ -59,7 +59,7 @@ def get_user(user_id: str):
|
||||
)
|
||||
|
||||
if not user:
|
||||
return UserNotFoundError('User not found')
|
||||
raise UserNotFoundError('User not found')
|
||||
|
||||
return user
|
||||
|
||||
@@ -74,10 +74,7 @@ def update(
|
||||
old_cpf = dyn.collection.get_item(
|
||||
KeyPair(
|
||||
pk=user_id,
|
||||
sk=SortKey(
|
||||
'0',
|
||||
path_spec='cpf',
|
||||
),
|
||||
sk=SortKey('0', path_spec='cpf'),
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user