summary refs log tree commit diff
path: root/src/routes
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-05 16:24:51 +0100
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-05 16:24:51 +0100
commit7b6a7db93e002be846d72c74e48f4f24ea729abe (patch)
treee10750b4075bb3e4a3bbecb149df845194e2b419 /src/routes
parentMerge branch 'master' of https://github.com/discord-open-source/discord-server (diff)
downloadserver-7b6a7db93e002be846d72c74e48f4f24ea729abe.tar.xz
:art: use discord-server-util
Diffstat (limited to 'src/routes')
-rw-r--r--src/routes/api/v8/auth/login.ts2
-rw-r--r--src/routes/api/v8/auth/register.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/routes/api/v8/auth/login.ts b/src/routes/api/v8/auth/login.ts
index 6820c399..9cccbca5 100644
--- a/src/routes/api/v8/auth/login.ts
+++ b/src/routes/api/v8/auth/login.ts
@@ -1,11 +1,11 @@
 import { Request, Response, Router } from "express";
-import db from "../../../../util/Database";
 import { check, FieldErrors, Length } from "../../../../util/instanceOf";
 import bcrypt from "bcrypt";
 import jwt from "jsonwebtoken";
 import Config from "../../../../util/Config";
 import { User } from "../../../../models/User";
 import { adjustEmail } from "./register";
+import { db } from "discord-server-util";
 
 const router: Router = Router();
 export default router;
diff --git a/src/routes/api/v8/auth/register.ts b/src/routes/api/v8/auth/register.ts
index 5c163890..b5800d1f 100644
--- a/src/routes/api/v8/auth/register.ts
+++ b/src/routes/api/v8/auth/register.ts
@@ -1,6 +1,6 @@
 import { NextFunction, Request, Response, Router } from "express";
 import Config from "../../../../util/Config";
-import db from "../../../../util/Database";
+import { db } from "discord-server-util";
 import bcrypt from "bcrypt";
 import { check, Email, EMAIL_REGEX, FieldErrors, Length } from "../../../../util/instanceOf";
 import { Snowflake } from "../../../../util/Snowflake";