Fix deleting an application if it has a bot

This commit is contained in:
Madeline committed 2023-01-17 00:01:14 +11:00
1 parent 49a311f5d0
commit c0b12bc166
2 files changed
+2 -4

No files matched your search

-2
View File
@@ -71,8 +71,6 @@ router.post("/delete", route({}), async (req: Request, res: Response) => {
)
throw new HTTPError(req.t("auth:login.INVALID_TOTP_CODE"), 60008);
if (app.bot) await User.delete({ id: app.bot.id });
await Application.delete({ id: app.id });
res.send().status(200);