forked from FarmMaps/FarmMapsApiClient
final fix
This commit is contained in:
parent
cb892e9192
commit
81218ec0d0
@ -60,12 +60,11 @@ namespace FarmmapsApi.Services
|
||||
List<Item> items = await _farmmapsApiService.GetItemChildrenAsync(zipItem.Code,
|
||||
SHAPE_PROCESSED_ITEMTYPE);
|
||||
|
||||
if (items.Count(i => i.Created >= startUpload) > 0)
|
||||
{
|
||||
shapeItem = items.Where(i => i.Name.Contains(itemName))
|
||||
.OrderByDescending(i => i.Created)
|
||||
.First();
|
||||
items = items.Where(i => i.Created >= startUpload).OrderByDescending(i => i.Created).ToList();
|
||||
|
||||
if (items.Any())
|
||||
{
|
||||
shapeItem = items.First(i => i.Name.Contains(itemName));
|
||||
if(shapeItem != null)
|
||||
{
|
||||
source.Cancel();
|
||||
|
Loading…
Reference in New Issue
Block a user