aboutsummaryrefslogtreecommitdiffstats
path: root/routes/bitcoin
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-10-05 12:15:48 -0700
committerAdam Soltys <[email protected]>2022-10-05 12:15:48 -0700
commitfb91aa048617f0894e01c1e890ec957a3170539f (patch)
tree5630fbe3bb5eb67fc0fba2bba79b8b763609d93a /routes/bitcoin
parent160d95f693d7d8a17e864313b06790a841d4e160 (diff)
downloadcoinos-server-fb91aa048617f0894e01c1e890ec957a3170539f.tar.gz
coinos-server-fb91aa048617f0894e01c1e890ec957a3170539f.zip
prettier
Diffstat (limited to 'routes/bitcoin')
-rw-r--r--routes/bitcoin/receive.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/routes/bitcoin/receive.js b/routes/bitcoin/receive.js
index 3bc1750d..665cc2bc 100644
--- a/routes/bitcoin/receive.js
+++ b/routes/bitcoin/receive.js
@@ -231,9 +231,12 @@ setInterval(async () => {
{ transaction }
);
await account.reload({ transaction });
+ await invoice.reload({ transaction });
await p.save({ transaction });
p = p.get({ plain: true });
+ p.account = account.get({ plain: true });
+ p.invoice = invoice.get({ plain: true });
emit(user.username, "account", account);
emit(user.username, "payment", p);