message bug
This commit is contained in:
parent
20747b9d3b
commit
7bfbb16f48
1 changed files with 3 additions and 1 deletions
|
|
@ -70,10 +70,12 @@ async def on_invoice_paid(payment: Payment) -> None:
|
||||||
await mark_webhook_sent(payment, -1)
|
await mark_webhook_sent(payment, -1)
|
||||||
if payment.extra.get("comment"):
|
if payment.extra.get("comment"):
|
||||||
await updater(data, payment.extra.get("comment"), copilot.id)
|
await updater(data, payment.extra.get("comment"), copilot.id)
|
||||||
|
else:
|
||||||
await updater(data, "none", copilot.id)
|
await updater(data, "none", copilot.id)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
async def mark_webhook_sent(payment: Payment, status: int) -> None:
|
async def mark_webhook_sent(payment: Payment, status: int) -> None:
|
||||||
payment.extra["wh_status"] = status
|
payment.extra["wh_status"] = status
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue