bug fix #168 device export: batch filtering inverted

This commit is contained in:
Gary Sharp
2025-03-04 17:34:51 +11:00
parent eb1ffae212
commit 9a171a8417
+1 -1
View File
@@ -52,7 +52,7 @@ namespace Disco.Services.Devices
break;
case DeviceExportTypes.Batch:
if (Options.ExportTypeTargetId.HasValue && Options.ExportTypeTargetId.Value > 0)
query = query.Where(d => d.DeviceBatchId != Options.ExportTypeTargetId);
query = query.Where(d => d.DeviceBatchId == Options.ExportTypeTargetId);
else
query = query.Where(d => d.DeviceBatchId != null);
break;