forked from ddrilling/AsbCloudServer
мини-правка
This commit is contained in:
parent
29e34445be
commit
2dd04d4037
@ -127,7 +127,7 @@ namespace AsbCloudInfrastructure.Services.DailyReport
|
|||||||
|
|
||||||
public async Task<int> UpdateBlockAsync<Tdto>(int idWell, DateTime date, Tdto dto, CancellationToken token)
|
public async Task<int> UpdateBlockAsync<Tdto>(int idWell, DateTime date, Tdto dto, CancellationToken token)
|
||||||
{
|
{
|
||||||
var startDateOnly = date.Date.ExtractDateOnly();
|
var startDateOnly = date.ExtractDateOnly();
|
||||||
var entity = await db.DailyReports.FirstOrDefaultAsync(r => r.IdWell == idWell && r.StartDate == startDateOnly, token);
|
var entity = await db.DailyReports.FirstOrDefaultAsync(r => r.IdWell == idWell && r.StartDate == startDateOnly, token);
|
||||||
|
|
||||||
if (entity is null)
|
if (entity is null)
|
||||||
|
Loading…
Reference in New Issue
Block a user