Ignore:
Timestamp:
08/24/26 20:57:09 (13 days ago)
Author:
kikisrbinoska <srbinoskakristina07@…>
Branches:
main
Parents:
a6e33d1
Message:

Added corrected entitef from the ER diagram and changes for the logic to be coresponding to the ddl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ChapterX.Infrastructure/Repositories/NotificationRepository.cs

    ra6e33d1 re882b92  
    1212        }
    1313
    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.
    1614        public async Task<IEnumerable<Notification>> GetByUserIdAsync(int userId, CancellationToken cancellationToken = default)
    1715            => await _dbSet
    18                 .Where(n => n.RecipientUserId == userId)
     16                .Where(n => n.UserId == userId)
    1917                .OrderByDescending(n => n.CreatedAt)
    2018                .ToListAsync(cancellationToken);
Note: See TracChangeset for help on using the changeset viewer.