Skip to content

Commit

Permalink
routesegment created nodes now inherit username and worktaskmrid from…
Browse files Browse the repository at this point in the history
… routesegment
  • Loading branch information
runeanielsen committed Aug 24, 2020
1 parent e395814 commit 88d905a
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ public async Task Handle(NewRouteSegmentDigitized request, CancellationToken tok
{
var startPoint = routeSegment.FindStartPoint();
startNode = _routeNodeFactory.Create(startPoint);
startNode.Username = routeSegment.Username;
startNode.WorkTaskMrid = routeSegment.WorkTaskMrid;

await _geoDatabase.InsertRouteNode(startNode);
await _mediator.Publish(new RouteNodeAdded
{
Expand All @@ -64,6 +67,9 @@ await _mediator.Publish(new RouteNodeAdded
{
var endPoint = routeSegment.FindEndPoint();
endNode = _routeNodeFactory.Create(endPoint);
endNode.Username = routeSegment.Username;
endNode.WorkTaskMrid = routeSegment.WorkTaskMrid;

await _geoDatabase.InsertRouteNode(endNode);
await _mediator.Publish(new RouteNodeAdded
{
Expand Down

0 comments on commit 88d905a

Please sign in to comment.