copilot not triggering animations, listeners

This commit is contained in:
benarc
2021-10-18 10:41:41 +01:00
parent 0cf11caaad
commit 0d781f899c
2 changed files with 3 additions and 2 deletions

View File

@@ -87,7 +87,7 @@ async def lnurl_callback(
LnurlPayMetadata(json.dumps([["text/plain", str(cp.lnurl_title)]]))
).encode("utf-8")
).digest(),
extra={"tag": "copilot", "copilot": cp.id, "comment": comment},
extra={"tag": "copilot", "copilotid": cp.id, "comment": comment},
)
payResponse = {
"pr": payment_request,

View File

@@ -29,8 +29,9 @@ async def on_invoice_paid(payment: Payment) -> None:
if "copilot" != payment.extra.get("tag"):
# not an copilot invoice
return
print("cunt")
copilot = await get_copilot(payment.extra.get("copilot", -1))
copilot = await get_copilot(payment.extra.get("copilotid", -1))
if not copilot:
raise HTTPException(