From 9a171a8417615dcb6c851c2c5499afb8b28ecc31 Mon Sep 17 00:00:00 2001 From: Gary Sharp Date: Tue, 4 Mar 2025 17:34:51 +1100 Subject: [PATCH] bug fix #168 device export: batch filtering inverted --- Disco.Services/Devices/DeviceExport.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Disco.Services/Devices/DeviceExport.cs b/Disco.Services/Devices/DeviceExport.cs index 6b7f0126..2aa14fef 100644 --- a/Disco.Services/Devices/DeviceExport.cs +++ b/Disco.Services/Devices/DeviceExport.cs @@ -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;