Skip to content

Commit

Permalink
Remove projection logic from GetLeaseById
Browse files Browse the repository at this point in the history
  • Loading branch information
asanchezr authored and devinleighsmith committed May 31, 2024
1 parent 128759b commit 462acb4
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions source/backend/api/Services/LeaseService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,6 @@ public PimsLease GetById(long leaseId)
pimsUser.ThrowInvalidAccessToLeaseFile(_leaseRepository.GetNoTracking(leaseId).RegionCode);

var lease = _leaseRepository.Get(leaseId);
foreach (PimsPropertyLease propertyLease in lease.PimsPropertyLeases)
{
var property = propertyLease.Property;
if (property?.Location != null)
{
var newCoords = _coordinateService.TransformCoordinates(SpatialReference.BCALBERS, SpatialReference.WGS84, property.Location.Coordinate);
property.Location = GeometryHelper.CreatePoint(newCoords, SpatialReference.WGS84);
}
}
return lease;
}

Expand Down

0 comments on commit 462acb4

Please sign in to comment.