forked from ddrilling/AsbCloudServer
fix AsbCloudWebApi.Controllers.WellOperationController.ExportAsync. NullRef in WellService.Convert().
This commit is contained in:
parent
809ee137aa
commit
0b66648267
@ -110,6 +110,7 @@ namespace AsbCloudInfrastructure.Services
|
||||
|
||||
return dto;
|
||||
}
|
||||
|
||||
public async Task<string> GetWellCaptionByIdAsync(int idWell, CancellationToken token)
|
||||
{
|
||||
var entity = await cacheWells.FirstOrDefaultAsync(w => w.Id == idWell, token).ConfigureAwait(false);
|
||||
@ -144,8 +145,8 @@ namespace AsbCloudInfrastructure.Services
|
||||
{
|
||||
Id = well.Id,
|
||||
Caption = well.Caption,
|
||||
Cluster = well.Cluster.Caption,
|
||||
Deposit = well.Cluster.Deposit.Caption,
|
||||
Cluster = well.Cluster?.Caption,
|
||||
Deposit = well.Cluster?.Deposit?.Caption,
|
||||
LastTelemetryDate = GetLastTelemetryDate(well.Id),
|
||||
IdWellType = well.IdWellType ?? default,
|
||||
IdState = well.IdState,
|
||||
|
@ -7,7 +7,7 @@
|
||||
}
|
||||
},
|
||||
"ConnectionStrings": {
|
||||
"DefaultConnection": "Host=localhost;Database=postgres;Username=postgres;Password=q;Persist Security Info=True;Include Error Detail=True",
|
||||
"DefaultConnection": "Host=localhost;Database=postgres;Username=postgres;Password=q;Persist Security Info=True",
|
||||
"DebugConnection": "Host=localhost;Database=postgres;Username=postgres;Password=q;Persist Security Info=True;Include Error Detail=True",
|
||||
"ServerConnection": "Host=192.168.1.70;Database=postgres;Username=postgres;Password=q;Persist Security Info=True",
|
||||
"LocalConnection": "Host=localhost;Database=postgres;Username=postgres;Password=q;Persist Security Info=True"
|
||||
|
Loading…
Reference in New Issue
Block a user