Skip to content

Commit

Permalink
fix: No error if failing to remove deleted messages from store
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshoulahan committed Feb 21, 2023
1 parent a6bbc98 commit c1a1f6a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/backend/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,11 @@ func newUser(
}

if err := user.deleteAllMessagesMarkedDeleted(ctx); err != nil {
return nil, err
logrus.WithError(err).Error("Failed to remove deleted messages")
reporter.MessageWithContext(ctx,
"Failed to remove deleted messages",
reporter.Context{"error": err},
)
}

if err := user.cleanupStaleStoreData(ctx); err != nil {
Expand Down

0 comments on commit c1a1f6a

Please sign in to comment.