From 469bdfe32ffcc8abd6e0ebae34fe9e339a846c81 Mon Sep 17 00:00:00 2001 From: Miodec Date: Mon, 17 Jul 2023 13:59:27 +0200 Subject: [PATCH] validation --- backend/src/api/routes/ape-keys.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/api/routes/ape-keys.ts b/backend/src/api/routes/ape-keys.ts index b540762fe..0d670e113 100644 --- a/backend/src/api/routes/ape-keys.ts +++ b/backend/src/api/routes/ape-keys.ts @@ -67,7 +67,7 @@ router.patch( checkIfUserCanManageApeKeys, validateRequest({ params: { - apeKeyId: joi.string().required(), + apeKeyId: joi.string().token().required(), }, body: { name: apeKeyNameSchema,