aboutsummaryrefslogtreecommitdiffstats
path: root/routes
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-05-31 12:19:36 -0700
committerAdam Soltys <[email protected]>2022-05-31 12:19:36 -0700
commit344c60aa9d970e8f6a5955dc11393c962b8bd0b0 (patch)
treeb1ffce832f89735123f08914168280c5211f3adc /routes
parent1db7a0b0a2e897b67617a67fc852f538baecce76 (diff)
downloadcoinos-server-344c60aa9d970e8f6a5955dc11393c962b8bd0b0.tar.gz
coinos-server-344c60aa9d970e8f6a5955dc11393c962b8bd0b0.zip
use transaction for payment creation
Diffstat (limited to 'routes')
-rw-r--r--routes/bitcoin/send.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/bitcoin/send.js b/routes/bitcoin/send.js
index 70cca161..cf7e89ef 100644
--- a/routes/bitcoin/send.js
+++ b/routes/bitcoin/send.js
@@ -124,7 +124,7 @@ module.exports = ah(async (req, res) => {
hex = (await bc.signRawTransactionWithWallet(hex)).hex;
params.hash = await bc.sendRawTransaction(hex);
- let payment = await db.Payment.create(params);
+ let payment = await db.Payment.create(params, { transaction });
payment = payment.get({ plain: true });
payment.account = account.get({ plain: true });