diff options
Diffstat (limited to 'routes/bitcoin')
| -rw-r--r-- | routes/bitcoin/receive.js | 2 | ||||
| -rw-r--r-- | routes/bitcoin/send.js | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/routes/bitcoin/receive.js b/routes/bitcoin/receive.js index 8f5d5842..45dadbbe 100644 --- a/routes/bitcoin/receive.js +++ b/routes/bitcoin/receive.js @@ -195,7 +195,7 @@ setInterval(async () => { { transaction } ); // get the # of fee credits you would need to pay off this amount of bitcoin - await account.increment({ fee_credits: computeConversionFee(total) }, { transaction }); + await account.increment({ btc_credits: computeConversionFee(total) }, { transaction }); await account.reload({ transaction }); await p.save({ transaction }); diff --git a/routes/bitcoin/send.js b/routes/bitcoin/send.js index a566c6f0..884c0db1 100644 --- a/routes/bitcoin/send.js +++ b/routes/bitcoin/send.js @@ -67,9 +67,9 @@ module.exports = ah(async (req, res) => { } // use user's credits to reduce fee, if available - let conversionFeeDeduction = Math.min(account.fee_credits, conversionFee); + let conversionFeeDeduction = Math.min(account.btc_credits, conversionFee); if (conversionFeeDeduction) { - await account.decrement({ fee_credits: conversionFeeDeduction }, { transaction }); + await account.decrement({ btc_credits: conversionFeeDeduction }, { transaction }); await account.reload({ transaction }); conversionFee -= conversionFeeDeduction; } |
