Legend:
- Unmodified
- Added
- Removed
-
ChapterX.Infrastructure/Repositories/NotificationRepository.cs
ra6e33d1 re882b92 12 12 } 13 13 14 // Currently Notification is not linked directly to a User entity.15 // This method returns all notifications; adjust filter when a User relation is added.16 14 public async Task<IEnumerable<Notification>> GetByUserIdAsync(int userId, CancellationToken cancellationToken = default) 17 15 => await _dbSet 18 .Where(n => n. RecipientUserId == userId)16 .Where(n => n.UserId == userId) 19 17 .OrderByDescending(n => n.CreatedAt) 20 18 .ToListAsync(cancellationToken);
Note:
See TracChangeset
for help on using the changeset viewer.
