aboutsummaryrefslogtreecommitdiffstats
path: root/lib/utils.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-09-06 09:20:25 -0700
committerAdam Soltys <[email protected]>2022-09-06 09:20:25 -0700
commitc2464b2407ee23134732fd67586758dbfe18f9b5 (patch)
tree3e2d9f009bb325a9a7c4304ea02f6e64dda85bd1 /lib/utils.js
parent8a080ef9a198799e7ee31cf81f92afd5495e4074 (diff)
downloadcoinos-server-c2464b2407ee23134732fd67586758dbfe18f9b5.tar.gz
coinos-server-c2464b2407ee23134732fd67586758dbfe18f9b5.zip
prettier
Diffstat (limited to 'lib/utils.js')
-rw-r--r--lib/utils.js16
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) {