get correct item name for zonering
This commit is contained in:
		| @@ -21,8 +21,4 @@ | |||||||
|         <ProjectReference Include="..\FarmmapsApi\FarmmapsApi.csproj" /> |         <ProjectReference Include="..\FarmmapsApi\FarmmapsApi.csproj" /> | ||||||
|     </ItemGroup> |     </ItemGroup> | ||||||
|  |  | ||||||
|     <ItemGroup> |  | ||||||
|       <Folder Include="Data" /> |  | ||||||
|     </ItemGroup> |  | ||||||
|  |  | ||||||
| </Project> | </Project> | ||||||
|   | |||||||
| @@ -49,11 +49,10 @@ namespace FarmmapsZonering.Services | |||||||
|                 return null; |                 return null; | ||||||
|             } |             } | ||||||
|              |              | ||||||
|             var itemName = $"VRAZonering"; |  | ||||||
|             var applianceMapItem = await _generalService.FindChildItemAsync(cropfieldItem.Code, |             var applianceMapItem = await _generalService.FindChildItemAsync(cropfieldItem.Code, | ||||||
|                 GEOTIFF_PROCESSED_ITEMTYPE, itemName, |                 GEOTIFF_PROCESSED_ITEMTYPE, output.Name, | ||||||
|                 i => i.Updated >= itemTask.Finished.GetValueOrDefault(DateTime.UtcNow) && |                 i => i.Updated >= itemTask.Finished.GetValueOrDefault(DateTime.UtcNow) && | ||||||
|                      i.Name.ToLower().Contains(itemName.ToLower())); |                      i.Name.ToLower().Contains(output.Name.ToLower())); | ||||||
|  |  | ||||||
|             if (applianceMapItem == null) |             if (applianceMapItem == null) | ||||||
|             { |             { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user