aboutsummaryrefslogtreecommitdiffstats
path: root/routes
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2021-01-25 13:21:42 -0500
committerAdam Soltys <[email protected]>2021-01-25 13:21:42 -0500
commite671baeb092ea6523027118bd1bba7bd85290823 (patch)
tree35fb477fc9daa13caf3c58d52476a0c363e1a06c /routes
parent5f7a63c72883590c2fa538c5942064e6f6a13b09 (diff)
downloadcoinos-server-e671baeb092ea6523027118bd1bba7bd85290823.tar.gz
coinos-server-e671baeb092ea6523027118bd1bba7bd85290823.zip
check for payment account
Diffstat (limited to 'routes')
-rw-r--r--routes/bitcoin/receive.js2
-rw-r--r--routes/liquid/receive.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/routes/bitcoin/receive.js b/routes/bitcoin/receive.js
index 2a6a7954..30a3852a 100644
--- a/routes/bitcoin/receive.js
+++ b/routes/bitcoin/receive.js
@@ -155,7 +155,7 @@ setInterval(async () => {
const { user } = p;
- if (p) {
+ if (p && p.account) {
let total = p.amount + p.tip;
p.confirmed = 1;
diff --git a/routes/liquid/receive.js b/routes/liquid/receive.js
index 4af7f4f0..7955de80 100644
--- a/routes/liquid/receive.js
+++ b/routes/liquid/receive.js
@@ -292,7 +292,7 @@ setInterval(async () => {
const { user } = p;
- if (p) {
+ if (p && p.account) {
let total = p.amount + p.tip;
p.confirmed = 1;
await p.account.save({ transaction });