From a77ad1d9bbe7d7e3693db5cdcf9ec966fb988e67 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 24 Sep 2022 16:24:29 +0000 Subject: foreign key on account_id --- lib/sync.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/sync.js') 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); } -- cgit v1.2.3