add draft

This commit is contained in:
2025-10-25 14:09:04 -03:00
parent 2fba9ba059
commit 29ecb87e45
4 changed files with 7 additions and 11 deletions

View File

@@ -1,5 +1,3 @@
import time
from aws_lambda_powertools import Logger
from aws_lambda_powertools.event_handler.api_gateway import Router
from aws_lambda_powertools.event_handler.exceptions import (
@@ -22,7 +20,6 @@ dyn = DynamoDBPersistenceLayer(USER_TABLE, dynamodb_client)
@router.get('/<user_id>')
def get_user(user_id: str):
time.sleep(2)
return dyn.collection.get_item(
KeyPair(user_id, '0'),
exc_cls=NotFoundError,