From 04ff0452f92c6f43c38c875eeda870dca560f093 Mon Sep 17 00:00:00 2001 From: KS Jannette Date: Sun, 22 Feb 2026 17:23:42 -0500 Subject: [PATCH] more twekas for charting --- trahn-trade-backend/internal/repository/price.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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