add test create promo

This commit is contained in:
Pavel 2024-01-26 14:50:47 +03:00
parent 87b255a356
commit a24f601f1f

@ -28,7 +28,7 @@ func (p *PromoCodeController) CreatePromoCode(c *fiber.Ctx) error {
}
if req.Codeword == "" {
return c.Status(fiber.StatusBadRequest).JSON(fiber.Map{"error": "codeword ID is required"})
return c.Status(fiber.StatusBadRequest).JSON(fiber.Map{"error": "codeword is required"})
}
createdPromoCode, err := p.promoCodeService.CreatePromoCode(c.Context(), &req)