From 99e2c2b10b183eef998e3517208c1d99714ef295 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 26 Sep 2024 16:03:47 -0700 Subject: check account when crediting --- routes/payments.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'routes') diff --git a/routes/payments.ts b/routes/payments.ts index 73a6b1f8..5d190c7e 100644 --- a/routes/payments.ts +++ b/routes/payments.ts @@ -291,6 +291,8 @@ export default { if (typeof p === "string") p = await g(`payment:${p}`); if (!p) { + let invoice = await getInvoice(address); + if (!hot && aid !== invoice?.aid) continue; await credit({ hash: address, amount: sats(amount), -- cgit v1.2.3