diff options
| author | Adam Soltys <[email protected]> | 2022-09-24 16:24:29 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-09-24 16:24:29 +0000 |
| commit | a77ad1d9bbe7d7e3693db5cdcf9ec966fb988e67 (patch) | |
| tree | f5f71dfad9a9cb1968733717d472ab6373cd9fc1 /lib/sync.js | |
| parent | 150bbe38a969c8773309f07f17787b286ef1fd16 (diff) | |
| download | coinos-server-a77ad1d9bbe7d7e3693db5cdcf9ec966fb988e67.tar.gz coinos-server-a77ad1d9bbe7d7e3693db5cdcf9ec966fb988e67.zip | |
foreign key on account_id
Diffstat (limited to 'lib/sync.js')
| -rw-r--r-- | lib/sync.js | 3 |
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); } |
