refactor: migrate story snapshot params to pixel (#26844)

This commit is contained in:
McKayla はな
2026-07-29 18:13:55 -06:00
committed by GitHub
parent d210b311dc
commit 2b28515d9b
50 changed files with 43 additions and 128 deletions
+2 -2
View File
@@ -10663,7 +10663,7 @@ func TestUsageEventsTrigger(t *testing.T) {
require.Equal(t, "hb_ai_seats_v1", rows[0].EventType)
require.JSONEq(t, `{"count": 10}`, string(rows[0].UsageData))
// Insert a higher count on the same day — should take the max.
// Insert a higher count on the same day. It should take the max.
err = db.InsertUsageEvent(ctx, database.InsertUsageEventParams{
ID: "hb-2",
EventType: "hb_ai_seats_v1",
@@ -10676,7 +10676,7 @@ func TestUsageEventsTrigger(t *testing.T) {
require.Len(t, rows, 1)
require.JSONEq(t, `{"count": 50}`, string(rows[0].UsageData))
// Insert a lower count on the same day — should keep the max (50).
// Insert a lower count on the same day. It should keep the max (50).
err = db.InsertUsageEvent(ctx, database.InsertUsageEventParams{
ID: "hb-3",
EventType: "hb_ai_seats_v1",