From 9cfa53172c98590497396c8b2fcfc798b2e47572 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Fri, 12 May 2023 21:07:47 +0000 Subject: [PATCH] fix bug in instance post Signed-off-by: Arthur Lu --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index 02a32f7..b26a92e 100644 --- a/main.js +++ b/main.js @@ -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;