feat: update product quantity when invoice paid
This commit is contained in:
parent
3794eac915
commit
b7dfa22026
3 changed files with 70 additions and 10 deletions
|
|
@ -460,9 +460,7 @@ async def api_update_product(
|
|||
product.config.currency = stall.currency
|
||||
|
||||
product = await update_product(merchant.id, product)
|
||||
|
||||
event = await sign_and_send_to_nostr(merchant, product)
|
||||
|
||||
product.config.event_id = event.id
|
||||
await update_product(merchant.id, product)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue