File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
src/api/searchCpmProduct/src/v1 Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 22from typing import List
33
44from aws_lambda_powertools .utilities .data_classes import APIGatewayProxyEvent
5- from domain .core .cpm_product import CpmProduct
65from domain .repository .cpm_product_repository .v3 import CpmProductRepository
76from domain .repository .product_team_repository .v2 import ProductTeamRepository
87from 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" ]
You can’t perform that action at this time.
0 commit comments