Fix: 販売情報取得時の並び順を修正

This commit is contained in:
Sakurai Ryota 2025-05-05 17:10:39 +09:00
parent cd6959c673
commit f8ac2bbddb

View File

@ -84,7 +84,7 @@ public class MySqlStockRepository : IStockRepository
public async ValueTask<IEnumerable<StockTable>> FetchStockRecordByIdAsync(int productId)
{
var ret = await this.database.FetchAsync<StockTable>(
$"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);