fix/endpoints (#60)

add

Merge branch 'master' of http://git.kadet.net/system-praktyk/system-praktyk-api into fix/endpoints

fix

Co-authored-by: MaxchilKH <m.w.bohdanowicz@gmail.com>
This commit is contained in:
maxchil 2020-10-04 13:30:28 +02:00
parent 28859a601c
commit b98ab42c4d

View File

@ -38,6 +38,7 @@ namespace InternshipSystem.Api.Controllers
var edition =
await Context.Editions
.Include(e => e.AvailableInternshipTypes)
.ThenInclude(e => e.InternshipType)
.Where(e => e.Id.Equals(user.EditionId))
.FirstOrDefaultAsync(cancellationToken: cancellationToken);