fixed errors with randomchallenge
This commit is contained in:
@@ -34,12 +34,6 @@ public class GetRandomChallengeEndpoint(
|
|||||||
return;
|
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);
|
await Send.OkAsync(await randomChallengesRepository.ProjectToSingleAsync<GetRandomChallengeDto>(new GetRandomChallengeByIdSpec(req.RandomChallengeId), ct), ct);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user