feat: update product quantity when invoice paid

This commit is contained in:
Vlad Stan 2023-03-16 11:59:38 +02:00
parent 3794eac915
commit b7dfa22026
3 changed files with 70 additions and 10 deletions

View file

@ -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)