From ecdaec6f53cbaf4da2c8a3440d7a288f3497a1cb Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Tue, 7 Jun 2022 01:36:11 +0200 Subject: feat: Work in progress more module data models --- server/src/Endpoints/Internal/Account/GetArchiveRoute.cs | 2 +- server/src/Endpoints/V1/Labels/UpdateLabelRoute.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'server/src/Endpoints') diff --git a/server/src/Endpoints/Internal/Account/GetArchiveRoute.cs b/server/src/Endpoints/Internal/Account/GetArchiveRoute.cs index 44f5249..951dee0 100644 --- a/server/src/Endpoints/Internal/Account/GetArchiveRoute.cs +++ b/server/src/Endpoints/Internal/Account/GetArchiveRoute.cs @@ -26,7 +26,7 @@ public class GetAccountArchiveRoute : RouteBaseAsync.WithoutRequest.WithActionRe .AsNoTracking() .Include(c => c.Labels) .Include(c => c.Category) - .Where(c => c.User.Id == user.Id) + .Where(c => c.UserId == user.Id) .ToList(); var jsonOptions = new JsonSerializerOptions { diff --git a/server/src/Endpoints/V1/Labels/UpdateLabelRoute.cs b/server/src/Endpoints/V1/Labels/UpdateLabelRoute.cs index 0868671..30d72ec 100644 --- a/server/src/Endpoints/V1/Labels/UpdateLabelRoute.cs +++ b/server/src/Endpoints/V1/Labels/UpdateLabelRoute.cs @@ -26,7 +26,7 @@ public class UpdateLabelEndpoint : RouteBaseSync.WithRequest