fix: acceptance of verification now update customer account
This commit is contained in:
parent
159e55aab8
commit
31ffc5ab23
@ -149,6 +149,13 @@ func (r *VerificationController) SetVerificationStatus(c *fiber.Ctx) error {
|
||||
return fiber.NewError(fiber.StatusInternalServerError, err.Error())
|
||||
}
|
||||
|
||||
if req.Accepted {
|
||||
_, err := r.customer.UpdateAccountVerification(req.ID, req.Status)
|
||||
if err != nil {
|
||||
return fiber.NewError(fiber.StatusInternalServerError, err.Error())
|
||||
}
|
||||
}
|
||||
|
||||
return c.SendStatus(fiber.StatusOK)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user