Skip to content

Commit

Permalink
DP-992 - GetByShareCode query fix candidate (#1244)
Browse files Browse the repository at this point in the history
* DP-992 - GetByShareCode query fix candidate
* Update DatabaseShareCodeRepository.cs
* Update DatabaseShareCodeRepository.cs
  • Loading branch information
maciej-goaco authored Feb 6, 2025
1 parent 0d3a15f commit f6bc981
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public async Task<IEnumerable<SharedConsent>> GetShareCodesAsync(Guid organisati
.Include(sc => sc.Form)
.ThenInclude(f => f.Sections)
.ThenInclude(s => s.Questions.OrderBy(q => q.SortOrder))
.AsSplitQuery()
.FirstOrDefaultAsync();
}

Expand Down Expand Up @@ -137,5 +138,4 @@ public void Dispose()
{
context.Dispose();
}

}
}

0 comments on commit f6bc981

Please sign in to comment.