Ignore:
Timestamp:
03/24/26 22:13:36 (3 months ago)
Author:
kikisrbinoska <srbinoskakristina07@…>
Branches:
main
Children:
7fbb91c
Parents:
acf690c
Message:

Fixed reading lists,comments and likes

File:
1 edited

Legend:

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

    racf690c r73b69b2  
    1212        }
    1313
     14        public override async Task<IEnumerable<Story>> GetAllAsync(CancellationToken cancellationToken = default)
     15        {
     16            return await _dbSet
     17                .Include(s => s.HasGenres)
     18                    .ThenInclude(hg => hg.Genre)
     19                .Include(s => s.Writer)
     20                    .ThenInclude(w => w!.User)
     21                .ToListAsync(cancellationToken);
     22        }
     23
    1424        public async Task<IEnumerable<Story>> GetByWriterIdAsync(int writerId, CancellationToken cancellationToken = default)
    1525        {
Note: See TracChangeset for help on using the changeset viewer.