add test create promo
This commit is contained in:
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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user