fix bug in instance post
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
parent
f21d3cffea
commit
0054a269a5
2
main.js
2
main.js
@ -233,7 +233,7 @@ app.post("/api/instance", async (req, res) => {
|
|||||||
memory: Number(req.body.memory)
|
memory: Number(req.body.memory)
|
||||||
};
|
};
|
||||||
// setup action
|
// 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 = Number.parseInt(req.body.vmid);
|
||||||
let vmid_min = user.instances.vmid.min;
|
let vmid_min = user.instances.vmid.min;
|
||||||
let vmid_max = user.instances.vmid.max;
|
let vmid_max = user.instances.vmid.max;
|
||||||
|
Loading…
Reference in New Issue
Block a user