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