diff options
| author | Adam Soltys <[email protected]> | 2020-09-08 07:26:14 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2020-09-08 07:26:14 -0700 |
| commit | b5607df482440b55bd3e802f5bea4ead95e6491e (patch) | |
| tree | 6b8948fbb703c1feaca1aca10f3ac86c8062768b /routes/bitcoin/send.js | |
| parent | e40e68f49b10d6ef70546f7128bad891256525c0 (diff) | |
| download | coinos-server-b5607df482440b55bd3e802f5bea4ead95e6491e.tar.gz coinos-server-b5607df482440b55bd3e802f5bea4ead95e6491e.zip | |
bump account index
Diffstat (limited to 'routes/bitcoin/send.js')
| -rw-r--r-- | routes/bitcoin/send.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/routes/bitcoin/send.js b/routes/bitcoin/send.js index 8745c3dd..5d22152e 100644 --- a/routes/bitcoin/send.js +++ b/routes/bitcoin/send.js @@ -1,4 +1,5 @@ const bitcoin = require("bitcoinjs-lib"); +const btc = config.liquid.btcasset; module.exports = ah(async (req, res) => { let { user } = req; @@ -34,11 +35,11 @@ module.exports = ah(async (req, res) => { let params; try { await db.transaction(async transaction => { - if (account.asset !== btcasset) { + if (account.asset !== btc) { account = await db.Account.findOne({ where: { user_id: user.id, - asset: config.liquid.btcasset + asset: btc, }, lock: transaction.LOCK.UPDATE, transaction |
