mirror of
https://github.com/spacebarchat/server.git
synced 2026-05-25 09:54:34 +00:00
Fix deleting an application if it has a bot
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user