aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2020-09-28 00:53:50 -0700
committerAdam Soltys <[email protected]>2020-09-28 00:53:50 -0700
commit8332570751e1a0330b70920adc23e9416e787fdc (patch)
treee009c1b812e5b512d769943ce41923fee2605c96 /lib
parent8d42a328880dae07960c56a81649583aab0e71f3 (diff)
downloadcoinos-server-8332570751e1a0330b70920adc23e9416e787fdc.tar.gz
coinos-server-8332570751e1a0330b70920adc23e9416e787fdc.zip
fee deposit/refund
Diffstat (limited to 'lib')
-rw-r--r--lib/account.js18
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) {