added multithreaded api calling on homepage
All checks were successful
Portfolio CI/CD / build (push) Successful in 1m8s
Portfolio CI/CD / test (push) Successful in 1m51s
Portfolio CI/CD / publish (push) Has been skipped

This commit is contained in:
2026-02-22 12:22:20 +01:00
parent 53bd0e107e
commit aac2f5180b
11 changed files with 58 additions and 7 deletions

View File

@@ -12,5 +12,13 @@ internal sealed class ProjectRepository(DatabaseContext context) : IProjectRepos
.OrderByDescending(p => p.OrderIndex)
.ToArrayAsync(ct);
}
public async Task<IEnumerable<Project>> GetFeaturedProjects(CancellationToken ct) {
return await context.Projects
.Include(p => p.Languages)
.Where(p => p.Featured)
.OrderByDescending(p => p.OrderIndex)
.ToArrayAsync(ct);
}
}