fix bug in instance post

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
Arthur Lu 2023-05-12 21:07:47 +00:00
parent f21d3cffea
commit 0054a269a5

View File

@ -233,7 +233,7 @@ app.post("/api/instance", async (req, res) => {
memory: Number(req.body.memory)
};
// setup action
let user = await getUserData(req, req.cookies.username);
let user = await getUserConfig(req.cookies.username);
let vmid = Number.parseInt(req.body.vmid);
let vmid_min = user.instances.vmid.min;
let vmid_max = user.instances.vmid.max;