fix merge

This commit is contained in:
Степанов Дмитрий 2024-03-29 07:39:47 +03:00
parent 0fb65c7e83
commit 2f0af62829

View File

@ -259,7 +259,8 @@ public class WellOperationRepository : CrudRepositoryBase<WellOperationDto, Well
operation.DepthEnd, operation.DepthEnd,
}) })
.First(), .First(),
}); })
.Where(s => idsWells.Contains(s.IdWell));
var dbData = await query.ToArrayAsync(token); var dbData = await query.ToArrayAsync(token);
var sections = dbData.Select( var sections = dbData.Select(
item => new SectionByOperationsDto item => new SectionByOperationsDto
@ -283,8 +284,7 @@ public class WellOperationRepository : CrudRepositoryBase<WellOperationDto, Well
return sections; return sections;
}); });
var sections = cache.Where(s => idsWells.Contains(s.IdWell)); return cache;
return sections;
} }
public async Task<DatesRangeDto?> GetDatesRangeAsync(int idWell, int idType, CancellationToken cancellationToken) public async Task<DatesRangeDto?> GetDatesRangeAsync(int idWell, int idType, CancellationToken cancellationToken)