diff options
| author | Adam Soltys <[email protected]> | 2024-01-31 15:07:15 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-01-31 15:07:18 -0800 |
| commit | a342e022460d9eeb17b48f58746f6a32df03fddc (patch) | |
| tree | 3898312e3e581394bbc782b525be3e6cfce981ab /lib/payments.js | |
| parent | 5a7d1ec10baf4ddcf42ee607805153cf8d3001d2 (diff) | |
| download | coinos-server-a342e022460d9eeb17b48f58746f6a32df03fddc.tar.gz coinos-server-a342e022460d9eeb17b48f58746f6a32df03fddc.zip | |
fix typo
Diffstat (limited to 'lib/payments.js')
| -rw-r--r-- | lib/payments.js | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
