diff options
| author | Adam Soltys <[email protected]> | 2020-09-28 00:53:50 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2020-09-28 00:53:50 -0700 |
| commit | 8332570751e1a0330b70920adc23e9416e787fdc (patch) | |
| tree | e009c1b812e5b512d769943ce41923fee2605c96 /lib | |
| parent | 8d42a328880dae07960c56a81649583aab0e71f3 (diff) | |
| download | coinos-server-8332570751e1a0330b70920adc23e9416e787fdc.tar.gz coinos-server-8332570751e1a0330b70920adc23e9416e787fdc.zip | |
fee deposit/refund
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/account.js | 18 |
1 files changed, 9 insertions, 9 deletions
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) { |
