fix bug in /user/instances

This commit is contained in:
Arthur Lu 2023-04-21 22:40:12 +00:00
parent 0251bd51d4
commit eeb96a9164

View File

@ -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;
});