fix: resolved issue with GetTypes request handlers causing a 500 error response; updated debug constants to default levels

This commit is contained in:
jdevito
2023-02-01 09:43:52 -06:00
parent c68d46f971
commit 15efed02a5
14 changed files with 122 additions and 87 deletions

View File

@@ -212,9 +212,9 @@ namespace PepperDash.Essentials.Core
/// <returns></returns>
public static Dictionary<string, DeviceFactoryWrapper> GetDeviceFactoryDictionary(string filter)
{
return !string.IsNullOrEmpty(filter)
? FactoryMethods.Where(k => k.Key.Contains(filter)).ToDictionary(k => k.Key, k => k.Value)
: FactoryMethods;
return string.IsNullOrEmpty(filter)
? FactoryMethods
: FactoryMethods.Where(k => k.Key.Contains(filter)).ToDictionary(k => k.Key, k => k.Value);
}
}
}