mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-20 01:12:15 +00:00
wip: black
This commit is contained in:
parent
a98d108d2e
commit
ab97a95032
1 changed files with 1 additions and 0 deletions
|
|
@ -44,6 +44,7 @@ async function getCosts(workspaceID: string, year: number, month: number) {
|
|||
eq(UsageTable.workspaceID, workspaceID),
|
||||
gte(UsageTable.timeCreated, startDate),
|
||||
lte(UsageTable.timeCreated, endDate),
|
||||
or(isNull(UsageTable.enrichment), sql`JSON_EXTRACT(${UsageTable.enrichment}, '$.plan') != 'sub'`),
|
||||
),
|
||||
)
|
||||
.groupBy(sql`DATE(${UsageTable.timeCreated})`, UsageTable.model, UsageTable.keyID)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue