diff options
| author | Adam Soltys <[email protected]> | 2022-05-31 12:19:36 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-05-31 12:19:36 -0700 |
| commit | 344c60aa9d970e8f6a5955dc11393c962b8bd0b0 (patch) | |
| tree | b1ffce832f89735123f08914168280c5211f3adc /routes | |
| parent | 1db7a0b0a2e897b67617a67fc852f538baecce76 (diff) | |
| download | coinos-server-344c60aa9d970e8f6a5955dc11393c962b8bd0b0.tar.gz coinos-server-344c60aa9d970e8f6a5955dc11393c962b8bd0b0.zip | |
use transaction for payment creation
Diffstat (limited to 'routes')
| -rw-r--r-- | routes/bitcoin/send.js | 2 |
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 }); |
