Skip to content

Commit

Permalink
Merge pull request #110 from go-park-mail-ru/debug
Browse files Browse the repository at this point in the history
debug
  • Loading branch information
daronenko authored Dec 17, 2024
2 parents 674ec09 + 644b4e8 commit 60c49ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions microservices/user/usecase/usecase.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ func (usecase *userUsecase) Register(ctx context.Context, user *models.User) (*d
usecase.logger.Error(fmt.Sprintf("error checking username availability: %v", err), requestID)
return nil, fmt.Errorf("failed to check username availability: %w", err)
}
fmt.Printf("debug")

if foundUser, err := usecase.pgRepo.FindByEmail(ctx, user.Email); foundUser != nil {
usecase.logger.Warn(fmt.Sprintf("email '%s' is already taken", user.Email), requestID)
Expand Down

0 comments on commit 60c49ce

Please sign in to comment.