Skip to content

Commit

Permalink
debug commit
Browse files Browse the repository at this point in the history
  • Loading branch information
daronenko committed Dec 17, 2024
1 parent 674ec09 commit 644b4e8
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 644b4e8

Please sign in to comment.