From 9279d8c0838cbe3219a5fb6e1cf7879e81084b15 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Tue, 23 Apr 2024 18:56:43 +0000 Subject: [PATCH] fix instance create pool error mesage --- src/routes/cluster.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/cluster.js b/src/routes/cluster.js index 1515870..9eb48c1 100644 --- a/src/routes/cluster.js +++ b/src/routes/cluster.js @@ -193,7 +193,7 @@ router.post(`${basePath}/create`, async (req, res) => { } // check if pool is in user allowed pools if (user.cluster.pools[params.pool] !== true) { - res.status(500).send({ request, error: `Requested pool ${params.pool} not in allowed pools [${user.pools}]` }); + res.status(500).send({ error: `Requested pool ${params.pool} not in allowed pools [${user.pools}]` }); res.end(); return; }