Skip to content

Commit b464e96

Browse files
committed
Rename
1 parent 1fc6abd commit b464e96

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

api/src/api/workflows/products/discontinue_product/discontinue_product_workflow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ async def execute(self, request: DiscontinueProductRequest) -> None:
2020
self.application_settings.cosmos_db_no_sql_database
2121
)
2222
product_container = cosmosdb_database.get_container_client(Product.__name__)
23-
product = await product_container.read_item(
23+
product_dict = await product_container.read_item(
2424
item=request.id, partition_key=request.id
2525
)
26-
product = Product.model_validate(product)
26+
product = Product.model_validate(product_dict)
2727
product.discontinue(request.discontinuation_reason)
2828
await product_container.replace_item(product.id, product.model_dump())

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ dependencies = [
1818
dev = [
1919
"api",
2020
"jupyter==1.1.1",
21-
"pyright[nodejs]==1.1.402",
21+
"pyright[nodejs]==1.1.403",
2222
"pytest==8.4.1",
2323
"pytest-asyncio==1.0.0",
2424
"pytest-cov==6.2.1",

uv.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)