From 8332570751e1a0330b70920adc23e9416e787fdc Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 28 Sep 2020 00:53:50 -0700 Subject: fee deposit/refund --- lib/account.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'lib') diff --git a/lib/account.js b/lib/account.js index ca3ce7ea..3a296a4c 100644 --- a/lib/account.js +++ b/lib/account.js @@ -5,36 +5,36 @@ module.exports = async (asset, user, transaction) => { where: { user_id: user.id, asset, - pubkey: null, + pubkey: null }, - lock: transaction.LOCK.UPDATE, - transaction, + lock: transaction.LOCK.UPDATE, + transaction }); if (account) return account; let params = { user_id: user.id, - asset, + asset }; let name = asset.substr(0, 6); - let domain = ''; + let domain = ""; let ticker = asset.substr(0, 3).toUpperCase(); let precision = 8; - const assets = app.get('assets'); + const assets = app.get("assets"); if (assets[asset]) { ({ domain, ticker, precision, name } = assets[asset]); } else { const existing = await db.Account.findOne({ where: { - asset, + asset }, order: [["id", "ASC"]], limit: 1, - lock: transaction.LOCK.UPDATE, - transaction, + lock: transaction.LOCK.UPDATE, + transaction }); if (existing) { -- cgit v1.2.3