pickle rick

This commit is contained in:
2026-08-09 03:56:33 +02:00
parent 665924c84e
commit cb1b91c4c9
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -319,7 +319,7 @@ export default (router, tpl) => {
});
});
router.get(/\/admin\/user\/(?<userId>\d+)\/ips(\/)?$/, lib.auth, async (req, res) => {
router.get(/^\/admin\/user\/(?<userId>\d+)\/ips(\/)?$/, lib.auth, async (req, res) => {
const userId = +req.params.userId;
const user = await db`select "user", login from "user" where id = ${userId} limit 1`;
if (user.length === 0) return res.reply({ code: 404, body: 'User not found' });