From dba69b938ef71ab955e19c161d0379f848bf62bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Andr=C3=A9?= Date: Fri, 28 May 2021 17:15:25 +0200 Subject: [PATCH] Update the request of the user jumps --- Back/skydiveLogs-api.Infrastructure/JumpRepository.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Back/skydiveLogs-api.Infrastructure/JumpRepository.cs b/Back/skydiveLogs-api.Infrastructure/JumpRepository.cs index 8c4c3a7..dda946e 100644 --- a/Back/skydiveLogs-api.Infrastructure/JumpRepository.cs +++ b/Back/skydiveLogs-api.Infrastructure/JumpRepository.cs @@ -48,9 +48,7 @@ namespace skydiveLogs_api.Infrastructure .Include(x => x.DropZone) .Include(x => x.Gear) .Include(x => x.JumpType) - .Query() - .Where(j => j.User.Id == user.Id) - .ToList(); + .Find(j => j.User.Id == user.Id); } public IEnumerable GetAll()