summary refs log tree commit diff
path: root/api/src
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-05 19:37:54 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-05 19:37:54 +0200
commit72299d722b779c3f46f9f149e3fa1464ee61dd74 (patch)
tree2ebdd6fef682045846df647289eec64b12bcedbe /api/src
parent:bug: fix client locale (diff)
downloadserver-72299d722b779c3f46f9f149e3fa1464ee61dd74.tar.xz
:art: reformatted
Diffstat (limited to 'api/src')
-rw-r--r--api/src/Server.ts2
-rw-r--r--api/src/routes/auth/login.ts4
2 files changed, 4 insertions, 2 deletions
diff --git a/api/src/Server.ts b/api/src/Server.ts
index a16a61f8..12c1d6b4 100644
--- a/api/src/Server.ts
+++ b/api/src/Server.ts
@@ -13,6 +13,7 @@ import { initRateLimits } from "./middlewares/RateLimit";
 import TestClient from "./middlewares/TestClient";
 import { initTranslation } from "./middlewares/Translation";
 import morgan from "morgan";
+import { initInstance } from "./util/Instance";
 
 export interface FosscordServerOptions extends ServerOptions {}
 
@@ -37,6 +38,7 @@ export class FosscordServer extends Server {
 		await initDatabase();
 		await Config.init();
 		await initEvent();
+		await initInstance();
 
 		/* 
 		DOCUMENTATION: uses LOG_REQUESTS environment variable
diff --git a/api/src/routes/auth/login.ts b/api/src/routes/auth/login.ts
index ff04f8aa..a89721ea 100644
--- a/api/src/routes/auth/login.ts
+++ b/api/src/routes/auth/login.ts
@@ -1,7 +1,7 @@
 import { Request, Response, Router } from "express";
-import { FieldErrors, route } from "@fosscord/api";
+import { route } from "@fosscord/api";
 import bcrypt from "bcrypt";
-import { Config, User, generateToken, adjustEmail } from "@fosscord/util";
+import { Config, User, generateToken, adjustEmail, FieldErrors } from "@fosscord/util";
 
 const router: Router = Router();
 export default router;