Skip to content

Commit 374fc2c

Browse files
committed
Return tuple
1 parent 75ebe72 commit 374fc2c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/api/searchCpmProduct/src/v1/steps.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from typing import List
33

44
from aws_lambda_powertools.utilities.data_classes import APIGatewayProxyEvent
5-
from domain.core.cpm_product import CpmProduct
65
from domain.repository.cpm_product_repository.v3 import CpmProductRepository
76
from domain.repository.product_team_repository.v2 import ProductTeamRepository
87
from event.step_chain import StepChain
@@ -21,7 +20,7 @@ def validate_product_team(data, cache) -> str:
2120
return product_team_repo.read(id=product_team_id)
2221

2322

24-
def query_products(data, cache) -> List[CpmProduct]:
23+
def query_products(data, cache) -> tuple[HTTPStatus, List[dict]]:
2524
product_team_id = data[parse_incoming_path_parameters]
2625
cpm_product_repo = CpmProductRepository(
2726
table_name=cache["DYNAMODB_TABLE"], dynamodb_client=cache["DYNAMODB_CLIENT"]

0 commit comments

Comments
 (0)