[FIX] Fixed naming display

This commit is contained in:
Dunemask 2023-12-22 20:06:01 -07:00
parent a96ce0ddc3
commit b45bfed63c
5 changed files with 96 additions and 84 deletions

View file

@ -1,12 +1,12 @@
import { getDeployments } from "../k8s/k8s-server-control.js";
import { getInstances } from "../k8s/server-control.js";
import { getInstances } from "../k8s/server-status.js";
import { sendError } from "../util/ExpressClientError.js";
export function serverList(req, res) {
getDeployments()
.then((sd) => res.json(sd.map((s) => s.metadata.name.substring(4))))
.catch((e) => {
ERR("SERVER CONTROL", e);
ERR("STATUS CONTROLLER", e);
res.status(500).send("Couldn't get server list");
});
}