summary refs log tree commit diff
path: root/src/api
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-01-17 00:01:14 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-01-17 00:01:14 +1100
commit0af3da6db7d339e6e2a0181ffe8b8b9a8f809f8d (patch)
tree06a9b419e2781d52723038ff7499a7f61f941e9f /src/api
parentReturn embed proxy url even if imagor not set up. Also make warning nicer (diff)
downloadserver-0af3da6db7d339e6e2a0181ffe8b8b9a8f809f8d.tar.xz
Fix deleting an application if it has a bot
Diffstat (limited to 'src/api')
-rw-r--r--src/api/routes/applications/#id/index.ts2
1 files changed, 0 insertions, 2 deletions
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);