From 0af3da6db7d339e6e2a0181ffe8b8b9a8f809f8d Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Tue, 17 Jan 2023 00:01:14 +1100 Subject: Fix deleting an application if it has a bot --- src/api/routes/applications/#id/index.ts | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/api/routes/applications') diff --git a/src/api/routes/applications/#id/index.ts b/src/api/routes/applications/#id/index.ts index 11cd5a56..6ed602f1 100644 --- a/src/api/routes/applications/#id/index.ts +++ b/src/api/routes/applications/#id/index.ts @@ -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); -- cgit 1.5.1