don't change account next notification check at, the scheduler does this for us

This commit is contained in:
Andre Medeiros 2022-05-23 19:47:48 -04:00
parent bbb3001544
commit 571c6d60eb

View file

@ -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 {