aboutsummaryrefslogtreecommitdiffstats
path: root/routes
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-09-26 16:03:47 -0700
committerAdam Soltys <[email protected]>2024-09-26 16:03:47 -0700
commit99e2c2b10b183eef998e3517208c1d99714ef295 (patch)
treebe766940adee8d332833efa33560b268dd183a2c /routes
parentd47aebf9edfc9e455e11402c6e93dac29506937a (diff)
downloadcoinos-server-99e2c2b10b183eef998e3517208c1d99714ef295.tar.gz
coinos-server-99e2c2b10b183eef998e3517208c1d99714ef295.zip
check account when crediting
Diffstat (limited to 'routes')
-rw-r--r--routes/payments.ts2
1 files changed, 2 insertions, 0 deletions
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),