Fixed errors and created endpoint to see locked achievement of selected user
This commit is contained in:
@@ -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));
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user