Refactor challenge access checks and update text encoding: Remove unnecessary session variable in update and delete challenge functions. Update text in ChallengeManagement and ChallengesSection components for proper HTML encoding, enhancing display consistency.
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 3m5s

This commit is contained in:
Julien Froidefond
2025-12-15 15:33:14 +01:00
parent f093977b34
commit 5e810202bb
4 changed files with 9 additions and 9 deletions

View File

@@ -97,7 +97,7 @@ export async function updateChallenge(
}
) {
try {
const session = await checkAdminAccess()
await checkAdminAccess()
const challenge = await challengeService.updateChallenge(challengeId, {
title: data.title,
@@ -128,7 +128,7 @@ export async function updateChallenge(
export async function deleteChallenge(challengeId: string) {
try {
const session = await checkAdminAccess()
await checkAdminAccess()
await challengeService.deleteChallenge(challengeId)