Fixed errors and created endpoint to see locked achievement of selected user

This commit is contained in:
2026-02-21 16:24:12 +01:00
parent e677ff0f0a
commit 05b5026c6b
7 changed files with 61 additions and 8 deletions
@@ -0,0 +1,14 @@
using Ardalis.Specification;
using BeReadyBackend.Models;
namespace BeReadyBackend.Specifications.Achievements;
public class GetLockedAchievementsSpec : Specification<Achievement>
{
public GetLockedAchievementsSpec(int userId)
{
Query
.Where(x => x.UserAchievements != null && x.UserAchievements.All(y => y.UserId != userId));
}
}