summary refs log tree commit diff
path: root/api/src/middlewares
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-05 19:34:13 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-05 19:34:13 +0200
commit1492751d58ba74c5525d5f6e846a079ca91ad15f (patch)
treef95db213a836803a64926804a6b9b111bf9b8957 /api/src/middlewares
parent:sparkles: add User.register() method (diff)
downloadserver-1492751d58ba74c5525d5f6e846a079ca91ad15f.tar.xz
:art: move field error to util
Diffstat (limited to 'api/src/middlewares')
-rw-r--r--api/src/middlewares/ErrorHandler.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/api/src/middlewares/ErrorHandler.ts b/api/src/middlewares/ErrorHandler.ts
index 96e703ce..2012b91c 100644
--- a/api/src/middlewares/ErrorHandler.ts
+++ b/api/src/middlewares/ErrorHandler.ts
@@ -1,8 +1,6 @@
 import { NextFunction, Request, Response } from "express";
 import { HTTPError } from "lambert-server";
-import { EntityNotFoundError } from "typeorm";
-import { FieldError } from "@fosscord/api";
-import { ApiError } from "@fosscord/util";
+import { ApiError, FieldError } from "@fosscord/util";
 const EntityNotFoundErrorRegex = /"(\w+)"/;
 
 export function ErrorHandler(error: Error, req: Request, res: Response, next: NextFunction) {