feat: add more images for product
This commit is contained in:
parent
73016c2ce9
commit
d032c8b259
8 changed files with 51 additions and 73 deletions
|
|
@ -518,7 +518,6 @@ async def api_create_product(
|
|||
wallet: WalletTypeInfo = Depends(require_admin_key),
|
||||
) -> Product:
|
||||
try:
|
||||
data.validate_product()
|
||||
merchant = await get_merchant_for_user(wallet.wallet.user)
|
||||
assert merchant, "Merchant cannot be found"
|
||||
|
||||
|
|
@ -557,7 +556,6 @@ async def api_update_product(
|
|||
if product_id != product.id:
|
||||
raise ValueError("Bad product ID")
|
||||
|
||||
product.validate_product()
|
||||
merchant = await get_merchant_for_user(wallet.wallet.user)
|
||||
assert merchant, "Merchant cannot be found"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue