From 9f86b8e95ca62905bfef2aebb3e10cb14934ed88 Mon Sep 17 00:00:00 2001 From: Angel Beltran Date: Tue, 3 Mar 2026 18:54:00 -0700 Subject: [PATCH] bad logs --- domains/reports/events.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/domains/reports/events.go b/domains/reports/events.go index 4b895db..9a35e7e 100644 --- a/domains/reports/events.go +++ b/domains/reports/events.go @@ -43,6 +43,9 @@ func (db *Store) GetRawShopEvents(ctx context.Context, acctID int64, platform ac WHERE platform = @platform AND shop_id = @shop_id + ORDER BY + event_timestamp DESC, + event_id ASC `, pgx.NamedArgs{ "platform": platform, @@ -62,8 +65,6 @@ func (db *Store) GetRawShopEvents(ctx context.Context, acctID int64, platform ac return nil, fmt.Errorf("failed to scan rows: %w", err) } - fmt.Println("vs:", vs) - evts := make([]RawShopEvent, len(vs)) for i, v := range vs { evts[i] = RawShopEvent{ @@ -75,7 +76,5 @@ func (db *Store) GetRawShopEvents(ctx context.Context, acctID int64, platform ac } } - fmt.Println("evts:", evts) - return evts, nil }