don't delete after any error

This commit is contained in:
Andre Medeiros 2021-08-14 13:49:59 -04:00
parent a7e565b0f2
commit 4c5e47e749

View file

@ -248,6 +248,7 @@ func (nc *notificationsConsumer) Consume(delivery rmq.Delivery) {
"account#username": account.NormalizedUsername(), "account#username": account.NormalizedUsername(),
"err": err, "err": err,
}).Error("failed to fetch message inbox") }).Error("failed to fetch message inbox")
return
} }
err = nc.deleteAccount(ctx, account) err = nc.deleteAccount(ctx, account)