small update for finding shape taskmap

This commit is contained in:
2021-06-09 11:53:14 +02:00
parent 915df2ac6b
commit 7c5bbf0fbe
3 changed files with 50 additions and 50 deletions

View File

@@ -167,7 +167,7 @@ namespace FarmmapsApi.Services
else if (outputType== "shape") {
taskMapItem = await FindChildItemAsync(tiffItem.ParentCode,
SHAPE_PROCESSED_ITEMTYPE, itemName);
SHAPE_PROCESSED_ITEMTYPE, outputType);
}
else
{
@@ -178,7 +178,7 @@ namespace FarmmapsApi.Services
if (taskMapItem == null)
{
_logger.LogError("Could not find the shape/isoxml taskmap as a child item under the input");
_logger.LogError("Could not find the shape/isoxml taskmap as a child item under the cropfield");
return null;
}
@@ -218,7 +218,7 @@ namespace FarmmapsApi.Services
dataItem = uploadedFilesChildren.FirstOrDefault(func);
if (dataItem != null || tries == maxTries) {
source.Cancel();
}
}
tries++;
});