Skip to content

Commit

Permalink
feature/PI-551-remove_fhir_from_read_product Return tuple of http sta…
Browse files Browse the repository at this point in the history
…tus & product dict
  • Loading branch information
megan-bower4 committed Oct 22, 2024
1 parent 11e6915 commit 236a016
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/layers/domain/api/common_steps/read_product.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from http import HTTPStatus

from aws_lambda_powertools.utilities.data_classes import APIGatewayProxyEvent
from domain.core.cpm_product.v1 import CpmProduct
from domain.core.product_team.v3 import ProductTeam
Expand Down Expand Up @@ -35,7 +37,7 @@ def read_product(data, cache) -> CpmProduct:

def product_to_dict(data, cache) -> dict:
product: CpmProduct = data[read_product]
return product.state()
return HTTPStatus.OK, product.state()


before_steps = [
Expand Down

0 comments on commit 236a016

Please sign in to comment.