This commit is contained in:
2025-02-11 19:30:20 -05:00
parent aa1cdc2fb3
commit fbd6dd5752
3 changed files with 172 additions and 4 deletions

View File

@@ -86,6 +86,7 @@ class BoxService:
type='box',
product_line='mtg'
)
self.db.add(product)
box = Box(
product_id=product.id,
type=create_box_data.type,
@@ -93,7 +94,6 @@ class BoxService:
sku=create_box_data.sku,
num_cards_expected=create_box_data.num_cards_expected
)
self.db.add(product)
self.db.add(box)
return box, True