You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
logger.error('FLEET_DEVICE_PATH_MAC or FLEET_DEVICE_PATH_WINDOWS not configured');
37
-
return;
38
-
}
39
-
40
-
// Create a query that matches devices from either macOS or Windows
41
-
constquery=`SELECT 1 FROM file WHERE path = '${fleetDevicePathMac}/${organizationId}' OR path = '${fleetDevicePathWindows}\\${organizationId}' LIMIT 1;`;
36
+
// Simple union query: only file table, constrained per platform path
37
+
constquery=`
38
+
SELECT 1 FROM file WHERE path = '${fleetDevicePathMac}/${organizationId}'
39
+
UNION SELECT 1 FROM file WHERE path = '${fleetDevicePathWindows}\\${organizationId}'
40
+
UNION SELECT 1 FROM file WHERE path = '${windowsFallbackDir}\\${organizationId}'
0 commit comments