diff options
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) { |
