Skip to content

Commit

Permalink
fix: define split query behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
tnotheis committed Feb 4, 2025
1 parent 7fd251d commit 2adf4d8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ public Task DeleteRecipients(Expression<Func<AnnouncementRecipient, bool>> filte

public Task<Announcement?> FindById(AnnouncementId id, CancellationToken cancellationToken)
{
return _readOnlyAnnouncements.IncludeAll(_dbContext).FirstOrDefaultAsync(a => a.Id == id, cancellationToken);
return _readOnlyAnnouncements.IncludeAll(_dbContext).AsSplitQuery().FirstOrDefaultAsync(a => a.Id == id, cancellationToken);
}
}

0 comments on commit 2adf4d8

Please sign in to comment.