From 98329e42a2ee62ab2586007d4eba6dc98b355840 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Tue, 2 Jul 2019 14:56:40 -0500 Subject: [PATCH] undo filtering non-Uri which doesn't work right --- .../Infrastructure/Repositories/UrlRepository.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/FilterLists.Agent/Infrastructure/Repositories/UrlRepository.cs b/src/FilterLists.Agent/Infrastructure/Repositories/UrlRepository.cs index 14ce8e344..0c1dc8e1b 100644 --- a/src/FilterLists.Agent/Infrastructure/Repositories/UrlRepository.cs +++ b/src/FilterLists.Agent/Infrastructure/Repositories/UrlRepository.cs @@ -36,8 +36,7 @@ public async Task> GetAllAsync() var request = new RestRequest($"{EntityUrlsEndpoints[typeof(TModel).Name]}/seed"); var response = await _apiClient.ExecuteAsync>(request); return response.SelectMany(r => - r.GetType().GetProperties().Where(p => p.GetType() == typeof(Uri) && p.GetValue(r) != null) - .Select(p => (Uri)p.GetValue(r))); + r.GetType().GetProperties().Where(p => p.GetValue(r) != null).Select(p => (Uri)p.GetValue(r))); } } } \ No newline at end of file