Skip to content

Commit

Permalink
Merge pull request #489 from nodepen/quick-patch
Browse files Browse the repository at this point in the history
pass stream id to solver
  • Loading branch information
cdriesler authored Nov 18, 2023
2 parents 8d66896 + 1a2d987 commit 411330b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions apps/rhino-compute-server/Endpoints/GrasshopperEndpoints.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ public GrasshopperEndpointsModule(IRouteCacheProvider routeCacheProvider)

public class NodePenSolutionRequestBody
{
[JsonProperty("streamId")]
public string StreamId { get; set; }

[JsonProperty("solutionId")]
public string SolutionId { get; set; }

Expand Down Expand Up @@ -155,8 +158,8 @@ public Response SolveGrasshopperDocument(NancyContext context)
}

// Commit updated document and solution data to stream
string streamId = Environment.SpeckleStreamId;
string branchName = "main";
string streamId = requestData.StreamId;
string branchName = "np-model";

Account account = new Account()
{
Expand Down
2 changes: 1 addition & 1 deletion apps/rhino-compute-server/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public bool Start(HostControl host)

// Start web server
StartOptions options = new StartOptions();
options.Urls.Add("http://localhost:6500");
options.Urls.Add("http://localhost:4000");

_ = WebApp.Start<Startup>(options);

Expand Down

0 comments on commit 411330b

Please sign in to comment.