fix(stats): scope data charts to go

This commit is contained in:
Adam
2026-06-14 20:21:49 -05:00
parent e4ccb505bf
commit a9a4b2f00f
5 changed files with 40 additions and 17 deletions
+8 -1
View File
@@ -62,7 +62,14 @@ export class ProviderStatRepo extends Context.Service<ProviderStatRepo, Provider
totalTokens: providerStat.total_tokens,
})
.from(providerStat)
.where(and(eq(providerStat.grain, "day"), eq(providerStat.client, "all"), eq(providerStat.source, "all")))
.where(
and(
eq(providerStat.grain, "day"),
eq(providerStat.client, "all"),
eq(providerStat.source, "all"),
inArray(providerStat.tier, ["Go", "go"]),
),
)
.orderBy(asc(providerStat.period_key)),
catch: (cause) => DatabaseError.make({ cause }),
})