aboutsummaryrefslogtreecommitdiffstats
path: root/lib/sync.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-09-24 16:24:29 +0000
committerAdam Soltys <[email protected]>2022-09-24 16:24:29 +0000
commita77ad1d9bbe7d7e3693db5cdcf9ec966fb988e67 (patch)
treef5f71dfad9a9cb1968733717d472ab6373cd9fc1 /lib/sync.js
parent150bbe38a969c8773309f07f17787b286ef1fd16 (diff)
downloadcoinos-server-a77ad1d9bbe7d7e3693db5cdcf9ec966fb988e67.tar.gz
coinos-server-a77ad1d9bbe7d7e3693db5cdcf9ec966fb988e67.zip
foreign key on account_id
Diffstat (limited to 'lib/sync.js')
-rw-r--r--lib/sync.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/sync.js b/lib/sync.js
index 95abb99d..625d128d 100644
--- a/lib/sync.js
+++ b/lib/sync.js
@@ -197,6 +197,7 @@ const sync = async () => {
try {
await db.transaction(async transaction => {
+ l("confirming payment", p.id, p.user_id, p.hash, p.address);
await p.save({ transaction });
await p.account.increment({ balance: p.amount }, { transaction });
@@ -205,8 +206,6 @@ const sync = async () => {
emit(p.user.username, "account", p.account);
emit(p.user.username, "payment", p);
-
- l("unconfirmed tx", p.user_id, p.hash, p.address);
} catch (e) {
err("problem confirming payment", p, e.message, e.stack);
}