diff --git a/trahn-trade-backend/internal/repository/price.go b/trahn-trade-backend/internal/repository/price.go index 021a2f3..77f1dca 100644 --- a/trahn-trade-backend/internal/repository/price.go +++ b/trahn-trade-backend/internal/repository/price.go @@ -40,7 +40,7 @@ func (r *PriceRepo) GetByDay(ctx context.Context, tradingDay string) ([]models.P func (r *PriceRepo) GetAvailableDays(ctx context.Context) ([]string, error) { rows, err := r.pool.Query(ctx, - `SELECT DISTINCT trading_day FROM price_history ORDER BY trading_day DESC LIMIT 30`, + `SELECT DISTINCT trading_day FROM price_history ORDER BY trading_day ASC LIMIT 30`, ) if err != nil { return nil, err