fixed errors with randomchallenge

This commit is contained in:
2026-03-29 19:48:08 +01:00
parent 8547dbbfdd
commit 0352b20bcd
@@ -34,12 +34,6 @@ public class GetRandomChallengeEndpoint(
return;
}
if (randomChallenge.Proof is not null)
{
await Send.StringAsync("Preuve déjà déposée", 400, cancellation: ct);
return;
}
await Send.OkAsync(await randomChallengesRepository.ProjectToSingleAsync<GetRandomChallengeDto>(new GetRandomChallengeByIdSpec(req.RandomChallengeId), ct), ct);
}
}