This commit is contained in:
2026-03-03 18:54:00 -07:00
parent 9f42f97356
commit b8de09bc00
+3 -4
View File
@@ -43,6 +43,9 @@ func (db *Store) GetRawShopEvents(ctx context.Context, acctID int64, platform ac
WHERE WHERE
platform = @platform platform = @platform
AND shop_id = @shop_id AND shop_id = @shop_id
ORDER BY
event_timestamp DESC,
event_id ASC
`, `,
pgx.NamedArgs{ pgx.NamedArgs{
"platform": platform, "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) return nil, fmt.Errorf("failed to scan rows: %w", err)
} }
fmt.Println("vs:", vs)
evts := make([]RawShopEvent, len(vs)) evts := make([]RawShopEvent, len(vs))
for i, v := range vs { for i, v := range vs {
evts[i] = RawShopEvent{ 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 return evts, nil
} }