From 816a1750d2476afadd2e845c3ab9a3b670f0953c Mon Sep 17 00:00:00 2001 From: Aloento <11802769+Aloento@users.noreply.github.com> Date: Thu, 15 Feb 2024 19:54:30 +0100 Subject: [PATCH] Update OrderGetItems and OrderGetCmts methods --- SoarCraft.AwaiShop/Hub/Order/Get.cs | 4 ++-- SoarCraft.AwaiShop/SoarCraft.AwaiShop.csproj | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/SoarCraft.AwaiShop/Hub/Order/Get.cs b/SoarCraft.AwaiShop/Hub/Order/Get.cs index 76c85d2..3f8f007 100644 --- a/SoarCraft.AwaiShop/Hub/Order/Get.cs +++ b/SoarCraft.AwaiShop/Hub/Order/Get.cs @@ -32,8 +32,8 @@ await this.Db.Orders [Authorize] public async Task OrderGetItems(uint orderId) => await this.Db.OrderCombos - .Where(x => x.Order.UserId == this.UserId) .Where(x => x.OrderId == orderId) + .Where(x => x.Order.UserId == this.UserId) .Select(x => new { x.Quantity, Types = x.Combo.Types.Select(t => t.TypeId).ToArray() @@ -50,8 +50,8 @@ await this.Db.OrderCombos [Authorize] public Task OrderGetCmts(uint orderId) => this.Db.Comments - .Where(x => x.Order.UserId == this.UserId) .Where(x => x.OrderId == orderId) + .Where(x => x.Order.UserId == this.UserId) .Select(x => x.CommentId) .ToArrayAsync(); } diff --git a/SoarCraft.AwaiShop/SoarCraft.AwaiShop.csproj b/SoarCraft.AwaiShop/SoarCraft.AwaiShop.csproj index c94095a..1147eb4 100644 --- a/SoarCraft.AwaiShop/SoarCraft.AwaiShop.csproj +++ b/SoarCraft.AwaiShop/SoarCraft.AwaiShop.csproj @@ -38,10 +38,10 @@ runtime; build; native; contentfiles; analyzers; buildtransitive - + - +