Fix deleting an application if it has a bot

This commit is contained in:
Madeline
2023-01-17 00:01:14 +11:00
parent 5771247645
commit 0af3da6db7
2 changed files with 2 additions and 4 deletions
-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);