This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user