From 886b0e5f7915c08cca154e38571a5490c972c43f Mon Sep 17 00:00:00 2001 From: Danil Solovyov Date: Wed, 26 Jul 2023 23:48:36 +0500 Subject: [PATCH] =?UTF-8?q?Customer=20=D0=BD=D0=B5=20=D0=B4=D0=B5=D0=BB?= =?UTF-8?q?=D0=B0=D0=B5=D1=82=20=D0=B7=D0=B0=D0=BF=D1=80=D0=BE=D1=81=D0=BE?= =?UTF-8?q?=D0=B2.=20Telegram=20=D0=BD=D0=B5=20=D1=88=D0=BB=D0=B5=D1=82=20?= =?UTF-8?q?=D0=B7=D0=B0=D0=BF=D0=B8=D1=81=D1=8C=20=D0=BE=20=D0=BE=D0=B1?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D0=B8=20=D1=81=D1=82?= =?UTF-8?q?=D0=B0=D1=82=D1=83=D1=81=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/controllers/verification.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/internal/controllers/verification.go b/internal/controllers/verification.go index 70bd166..1e4dac1 100644 --- a/internal/controllers/verification.go +++ b/internal/controllers/verification.go @@ -142,7 +142,7 @@ func (r *VerificationController) SetVerificationStatus(c *fiber.Ctx) error { return c.Status(fiber.StatusBadRequest).JSON(errValidate) } - updated, err := r.repository.Update(c.Context(), &models.Verification{ + _, err = r.repository.Update(c.Context(), &models.Verification{ ID: req.ID, UserID: userID, Accepted: req.Accepted, @@ -150,12 +150,6 @@ func (r *VerificationController) SetVerificationStatus(c *fiber.Ctx) error { Comment: req.Comment, }) - err = r.telegram.SendVerification(updated, true) - if err != nil { - return fiber.NewError(fiber.StatusInternalServerError, err.Error()) - } - - _, err = r.customer.UpdateAccountVerification(userID, req.Status) if err != nil { return fiber.NewError(fiber.StatusInternalServerError, err.Error()) }