From 9ad10f6c82d67aeaccf2de4b3cac2ee54bab9f95 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Fri, 21 Apr 2023 22:40:12 +0000 Subject: [PATCH] fix bug in /user/instances --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index c1fc8d3..197dd06 100644 --- a/main.js +++ b/main.js @@ -78,7 +78,7 @@ app.get("/api/user/resources", async(req, res) => { app.get("/api/user/instances", async(req, res) => { await checkAuth(req.cookies, res); - res.status(200).send({instances: getUser(re.cookies.username).instances}) + res.status(200).send({instances: getUser(req.cookies.username).instances}) res.end(); return; });