diff options
Diffstat (limited to 'lib/utils.js')
| -rw-r--r-- | lib/utils.js | 16 |
1 files changed, 8 insertions, 8 deletions
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) { |
