mail-unlink: send 200 response

This commit is contained in:
May 2023-09-30 21:47:16 -07:00
parent 4def0d3fa6
commit 142bee3f7e

View file

@ -320,6 +320,7 @@ authRoutes.post("/remove_email", requiresAccount, (req,res) => {
if (acc.email) { if (acc.email) {
delete acc.email; delete acc.email;
Accounts.save() Accounts.save()
res.send("email detached")
} }
else ServeError(res, 400, "email not attached") else ServeError(res, 400, "email not attached")
}) })