summary refs log tree commit diff
path: root/api/src/routes/users
diff options
context:
space:
mode:
authorAlTech98 <altech123159@gmail.com>2021-09-18 18:36:29 +0200
committerAlTech98 <altech123159@gmail.com>2021-09-18 18:36:29 +0200
commitceb770fb5b6648c18d66d6997c8916ed60b8c192 (patch)
tree1995cbe4ec0dfe53860d8520b1de39ed4e02e0d6 /api/src/routes/users
parentFix gateway not listening for new channels events (diff)
downloadserver-ceb770fb5b6648c18d66d6997c8916ed60b8c192.tar.xz
Removed ChannelService, more fixes
Diffstat (limited to 'api/src/routes/users')
-rw-r--r--api/src/routes/users/@me/channels.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/src/routes/users/@me/channels.ts b/api/src/routes/users/@me/channels.ts
index 873ff245..b5782eca 100644
--- a/api/src/routes/users/@me/channels.ts
+++ b/api/src/routes/users/@me/channels.ts
@@ -1,5 +1,5 @@
 import { Request, Response, Router } from "express";
-import { Recipient, ChannelService, DmChannelDTO } from "@fosscord/util";
+import { Recipient, DmChannelDTO, Channel } from "@fosscord/util";
 import { route } from "@fosscord/api";
 
 const router: Router = Router();
@@ -16,7 +16,7 @@ export interface DmChannelCreateSchema {
 
 router.post("/", route({ body: "DmChannelCreateSchema" }), async (req: Request, res: Response) => {
 	const body = req.body as DmChannelCreateSchema;
-	res.json(await ChannelService.createDMChannel(body.recipients, req.user_id, body.name));
+	res.json(await Channel.createDMChannel(body.recipients, req.user_id, body.name));
 });
 
 export default router;