From 571c6d60eb0a2210f722d0a6d9b5298c5c769e2f Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Mon, 23 May 2022 19:47:48 -0400 Subject: [PATCH] don't change account next notification check at, the scheduler does this for us --- internal/worker/notifications.go | 1 - 1 file changed, 1 deletion(-) diff --git a/internal/worker/notifications.go b/internal/worker/notifications.go index 8753720..d4538bd 100644 --- a/internal/worker/notifications.go +++ b/internal/worker/notifications.go @@ -166,7 +166,6 @@ func (nc *notificationsConsumer) Consume(delivery rmq.Delivery) { previousNextCheck := account.NextNotificationCheckAt account.CheckCount++ - account.NextNotificationCheckAt = time.Now().Add(domain.NotificationCheckInterval) defer func(acc *domain.Account) { if err = nc.accountRepo.Update(nc, acc); err != nil {