mirror of
https://github.com/mollersuite/monofile.git
synced 2024-11-25 07:06:25 -08:00
fix an error code
This commit is contained in:
parent
ec42d61bf7
commit
ed9d7b5f8b
|
@ -193,7 +193,7 @@ adminRoutes.post("/transfer", parser, (req,res) => {
|
||||||
adminRoutes.post("/idchange", parser, (req,res) => {
|
adminRoutes.post("/idchange", parser, (req,res) => {
|
||||||
|
|
||||||
if (typeof req.body.target !== "string" || typeof req.body.new !== "string") {
|
if (typeof req.body.target !== "string" || typeof req.body.new !== "string") {
|
||||||
res.status(404)
|
res.status(400)
|
||||||
res.send()
|
res.send()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue