From f8ac2bbddb4140aade7d32854d091c917af549f3 Mon Sep 17 00:00:00 2001 From: Sakurai Date: Mon, 5 May 2025 17:10:39 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=E8=B2=A9=E5=A3=B2=E6=83=85=E5=A0=B1?= =?UTF-8?q?=E5=8F=96=E5=BE=97=E6=99=82=E3=81=AE=E4=B8=A6=E3=81=B3=E9=A0=86?= =?UTF-8?q?=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- StockingData/Lib/IO/Repositories/MySqlRepository.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/StockingData/Lib/IO/Repositories/MySqlRepository.cs b/StockingData/Lib/IO/Repositories/MySqlRepository.cs index 2783f3e..07e7119 100644 --- a/StockingData/Lib/IO/Repositories/MySqlRepository.cs +++ b/StockingData/Lib/IO/Repositories/MySqlRepository.cs @@ -84,7 +84,7 @@ public class MySqlStockRepository : IStockRepository public async ValueTask> FetchStockRecordByIdAsync(int productId) { var ret = await this.database.FetchAsync( - $"SELECT * FROM stocks WHERE product_id = @0 ORDER BY date DESC", + $"SELECT * FROM stocks WHERE product_id = @0 ORDER BY date ASC", productId ).ConfigureAwait(false);