Skip to content
Snippets Groups Projects
Commit 7fee50de authored by Jonah Husson's avatar Jonah Husson
Browse files

Fix log spam

parent 1698ccb6
No related branches found
No related tags found
2 merge requests!38Project/haven beta,!36Update notifications bot to allow multiple identities & devices
......@@ -198,7 +198,7 @@ func (s *Storage) AddLatestEphemeral(i *Identity, epoch int32, size uint) (*Ephe
func (s *Storage) AddEphemeralsForOffset(offset int64, epoch int32, size uint, t time.Time) error {
identities, err := s.getIdentitiesByOffset(offset)
if err != nil {
if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) {
return errors.WithMessage(err, "Failed to get users for given offset")
}
if len(identities) > 0 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment