mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
undo filtering non-Uri which doesn't work right
This commit is contained in:
parent
25c7653914
commit
98329e42a2
1 changed files with 1 additions and 2 deletions
|
|
@ -36,8 +36,7 @@ public async Task<IEnumerable<Uri>> GetAllAsync<TModel>()
|
|||
var request = new RestRequest($"{EntityUrlsEndpoints[typeof(TModel).Name]}/seed");
|
||||
var response = await _apiClient.ExecuteAsync<IEnumerable<TModel>>(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)));
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue