Removed ChannelService, more fixes

This commit is contained in:
AlTech98
2021-09-18 18:36:29 +02:00
parent 97e0c8709b
commit ada95b6c39
11 changed files with 131 additions and 139 deletions
+2 -2
View File
@@ -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;