aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-01-31 15:07:15 -0800
committerAdam Soltys <[email protected]>2024-01-31 15:07:18 -0800
commita342e022460d9eeb17b48f58746f6a32df03fddc (patch)
tree3898312e3e581394bbc782b525be3e6cfce981ab /lib
parent5a7d1ec10baf4ddcf42ee607805153cf8d3001d2 (diff)
downloadcoinos-server-a342e022460d9eeb17b48f58746f6a32df03fddc.tar.gz
coinos-server-a342e022460d9eeb17b48f58746f6a32df03fddc.zip
fix typo
Diffstat (limited to 'lib')
-rw-r--r--lib/lightning.js1
-rw-r--r--lib/payments.js2
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/lightning.js b/lib/lightning.js
index 9400a449..c32e4151 100644
--- a/lib/lightning.js
+++ b/lib/lightning.js
@@ -1,4 +1,3 @@
-import { emit } from "$lib/sockets";
import { handleZap } from "$lib/nostr";
import config from "$config";
import { notify } from "$lib/notifications";
diff --git a/lib/payments.js b/lib/payments.js
index 7f83f09a..85fa4216 100644
--- a/lib/payments.js
+++ b/lib/payments.js
@@ -176,7 +176,7 @@ export let credit = async (hash, amount, memo, ref, type = types.internal) => {
if ([types.bitcoin, types.liquid, types.lightning].includes(type))
m.incrBy(`credit:${type}:${uid}`, Math.round(amount * config.fee));
- m.set(`invoice:${inv.iid}`, JSON.stringify(inv))
+ m.set(`invoice:${inv.id}`, JSON.stringify(inv))
.set(`payment:${p.id}`, JSON.stringify(p))
.lPush(`${uid}:payments`, p.id)
.incrBy(`${balanceKey}:${uid}`, amount)