Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2a9cb2b2fb |
@@ -10,6 +10,6 @@ internal sealed class ProjectRepository(IHttpClientFactory factory) : IProjectRe
|
|||||||
if (!response.IsSuccessStatusCode) return [];
|
if (!response.IsSuccessStatusCode) return [];
|
||||||
|
|
||||||
var data = await response.Content.ReadFromJsonAsync<IEnumerable<Project>>(ct);
|
var data = await response.Content.ReadFromJsonAsync<IEnumerable<Project>>(ct);
|
||||||
return data ?? [];
|
return data?.OrderByDescending(p => p.OrderIndex) ?? Enumerable.Empty<Project>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user