Skip to content

Commit

Permalink
grpc
Browse files Browse the repository at this point in the history
  • Loading branch information
nglmq committed Sep 2, 2024
1 parent cd21794 commit 1e51df0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/app/grpc/handlers/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func (s *URLShortenerServer) SaveURL(ctx context.Context, req *pb.SaveURLRequest
return nil, fmt.Errorf("failed to save URL to database: %v", err)
}

shortURL := fmt.Sprintf(config.FlagBaseURL + "/" + existAlias)
shortURL := config.FlagBaseURL + "/" + existAlias
return &pb.SaveURLResponse{ShortUrl: shortURL}, nil
}

Expand Down

0 comments on commit 1e51df0

Please sign in to comment.