Skip to content

Commit

Permalink
Dont't return an error if we resolved the conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
ericvolp12 committed Sep 18, 2023
1 parent 6c2225e commit 054b8c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bgs/bgs.go
Original file line number Diff line number Diff line change
Expand Up @@ -1019,8 +1019,9 @@ func (s *BGS) createExternalUser(ctx context.Context, did string) (*models.Actor
if err := s.db.Create(&u).Error; err != nil {
return nil, fmt.Errorf("failed to create user after handle conflict: %w", err)
}
} else {
return nil, fmt.Errorf("failed to create other pds user: %w", err)
}
return nil, fmt.Errorf("failed to create other pds user: %w", err)
}

// okay cool, its a user on a server we are peered with
Expand Down

0 comments on commit 054b8c4

Please sign in to comment.