From c2464b2407ee23134732fd67586758dbfe18f9b5 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 6 Sep 2022 09:20:25 -0700 Subject: prettier --- lib/account.js | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'lib/account.js') diff --git a/lib/account.js b/lib/account.js index a1f20dc7..6edb3fc1 100644 --- a/lib/account.js +++ b/lib/account.js @@ -1,4 +1,4 @@ -import axios from 'axios'; +import axios from "axios"; export default async (asset, user, transaction) => { const account = await db.Account.findOne({ @@ -27,17 +27,15 @@ export default async (asset, user, transaction) => { if (assets[asset]) { ({ domain, ticker, precision, name } = assets[asset]); } else { - const existing = await db.Account.findOne( - { - where: { - asset - }, - order: [["id", "ASC"]], - limit: 1, + const existing = await db.Account.findOne({ + where: { + asset + }, + order: [["id", "ASC"]], + limit: 1, lock: transaction.LOCK.UPDATE, transaction - }, - ); + }); if (existing) { ({ domain, ticker, precision, name } = existing); -- cgit v1.2.3