[CHORE] Fix styling inconsistencies
This commit is contained in:
parent
12d198456c
commit
5a1a89342e
6 changed files with 59 additions and 26 deletions
|
@ -11,10 +11,10 @@ import { toggleServer } from "../k8s/k8s-server-control.js";
|
|||
function payloadFilter(req, res) {
|
||||
const serverSpec = req.body;
|
||||
if (!serverSpec) return res.sendStatus(400);
|
||||
const { name, url, version, serverType, difficulty, gamemode, memory } =
|
||||
const { name, host, version, serverType, difficulty, gamemode, memory } =
|
||||
serverSpec;
|
||||
if (!name) return res.status(400).send("Server name is required!");
|
||||
if (!url) return res.status(400).send("Server url is required!");
|
||||
if (!host) return res.status(400).send("Server host is required!");
|
||||
if (!version) return res.status(400).send("Server version is required!");
|
||||
if (!difficulty)
|
||||
return res.status(400).send("Server difficulty is required!");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue