diff options
author | AlTech98 <altech123159@gmail.com> | 2021-09-18 18:36:29 +0200 |
---|---|---|
committer | AlTech98 <altech123159@gmail.com> | 2021-09-18 18:36:29 +0200 |
commit | ceb770fb5b6648c18d66d6997c8916ed60b8c192 (patch) | |
tree | 1995cbe4ec0dfe53860d8520b1de39ed4e02e0d6 /api/src/routes/users/@me/channels.ts | |
parent | Fix gateway not listening for new channels events (diff) | |
download | server-ceb770fb5b6648c18d66d6997c8916ed60b8c192.tar.xz |
Removed ChannelService, more fixes
Diffstat (limited to 'api/src/routes/users/@me/channels.ts')
-rw-r--r-- | api/src/routes/users/@me/channels.ts | 4 |
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; |