added new status code StatusAccepted for questions aditory not ready
Some checks failed
Deploy / DeployService (push) Has been skipped
Deploy / CreateImage (push) Failing after 25s

This commit is contained in:
Pasha 2025-06-06 17:45:36 +03:00
parent 47f36ec559
commit ab0d7c6a86

@ -244,6 +244,9 @@ func (s *Service) GetQuizData(c *fiber.Ctx) error {
if req.NeedConfig {
if len(questions) == 0 {
if req.Auditory != 0 {
return c.Status(fiber.StatusAccepted).SendString("questions are not ready yet")
}
return c.Status(fiber.StatusNotFound).SendString("question not found")
}