forked from ddrilling/AsbCloudServer
Fix nullables in WellboreService
This commit is contained in:
parent
7f92f19ba6
commit
f69bec9687
@ -7,7 +7,6 @@ using AsbCloudApp.Data.SAUB;
|
||||
using AsbCloudApp.Repositories;
|
||||
using AsbCloudApp.Requests;
|
||||
using AsbCloudApp.Services;
|
||||
using AsbCloudInfrastructure.Services.SAUB;
|
||||
|
||||
namespace AsbCloudInfrastructure.Services;
|
||||
|
||||
@ -68,10 +67,10 @@ public class WellboreService : IWellboreService
|
||||
if (dataCache is not null)
|
||||
{
|
||||
wellbore.DateStart = dataCache.Value.First.DateTime;
|
||||
wellbore.DepthStart = dataCache.Value.First.WellDepth!.Value;
|
||||
wellbore.DepthStart = dataCache.Value.First.WellDepth;
|
||||
|
||||
wellbore.DateEnd = dataCache.Value.Last.DateTime;
|
||||
wellbore.DepthEnd = dataCache.Value.Last.WellDepth!.Value;
|
||||
wellbore.DepthEnd = dataCache.Value.Last.WellDepth;
|
||||
}
|
||||
}
|
||||
|
||||
@ -124,7 +123,7 @@ public class WellboreService : IWellboreService
|
||||
if (dataCache is not null)
|
||||
{
|
||||
wellbore.DateEnd = dataCache.Value.Last.DateTime;
|
||||
wellbore.DepthEnd = dataCache.Value.Last.WellDepth!.Value;
|
||||
wellbore.DepthEnd = dataCache.Value.Last.WellDepth;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user