From 5e573c831af0b082b67b924af48bae557b3a7c41 Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Wed, 13 Jul 2022 13:47:52 -0400 Subject: [PATCH] should run tests --- internal/worker/notifications.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/internal/worker/notifications.go b/internal/worker/notifications.go index 47152f9..204bace 100644 --- a/internal/worker/notifications.go +++ b/internal/worker/notifications.go @@ -160,10 +160,8 @@ func (nc *notificationsConsumer) Consume(delivery rmq.Delivery) { return } - newAccount := account.CheckCount == 0 - previousNextCheck := account.NextNotificationCheckAt - account.CheckCount++ + newAccount := account.CheckCount == 1 defer func(acc *domain.Account) { if err = nc.accountRepo.Update(nc, acc); err != nil {