Update DB Interface #2

Merged
alu merged 3 commits from update-localdb into main 2024-04-24 20:29:32 +00:00
Showing only changes of commit f9ad56a283 - Show all commits

View File

@ -193,7 +193,7 @@ router.post(`${basePath}/create`, async (req, res) => {
} }
// check if pool is in user allowed pools // check if pool is in user allowed pools
if (user.cluster.pools[params.pool] !== true) { 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(); res.end();
return; return;
} }