We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1e72b4 commit 69ce274Copy full SHA for 69ce274
apps/sim/lib/billing/core/usage-log.ts
@@ -89,7 +89,7 @@ export async function recordUsage(params: RecordUsageParams): Promise<void> {
89
const totalCost = validEntries.reduce((sum, e) => sum + e.cost, 0)
90
91
// Nothing to write: no cost entries and no counter increments
92
- if (validEntries.length === 0 && !additionalStats) {
+ if (validEntries.length === 0 && (!additionalStats || Object.keys(additionalStats).length === 0)) {
93
return
94
}
95
0 commit comments