From c2464b2407ee23134732fd67586758dbfe18f9b5 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 6 Sep 2022 09:20:25 -0700 Subject: prettier --- lib/utils.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'lib/utils.js') diff --git a/lib/utils.js b/lib/utils.js index a7db0ea3..004ca7ac 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -1,5 +1,5 @@ import db from "$db"; -import sequelize from '@sequelize/core'; +import sequelize from "@sequelize/core"; const { Op } = sequelize; export const getUser = async (username, transaction) => { @@ -7,12 +7,12 @@ export const getUser = async (username, transaction) => { include: [ { model: db.Account, - as: "account", - }, + as: "account" + } ], where: { - username: { [Op.or]: [username, username.replace(/ /g, "")] }, - }, + username: { [Op.or]: [username, username.replace(/ /g, "")] } + } }; if (transaction) { @@ -31,10 +31,10 @@ export const getUserById = async (id, transaction) => { include: [ { model: db.Account, - as: "account", - }, + as: "account" + } ], - where: { id }, + where: { id } }; if (transaction) { -- cgit v1.2.3