From a342e022460d9eeb17b48f58746f6a32df03fddc Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 31 Jan 2024 15:07:15 -0800 Subject: fix typo --- lib/lightning.js | 1 - lib/payments.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'lib') 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) -- cgit v1.2.3