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);