We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69ce274 commit d4b1593Copy full SHA for d4b1593
apps/sim/lib/billing/core/usage-log.ts
@@ -89,7 +89,10 @@ 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 || Object.keys(additionalStats).length === 0)) {
+ if (
93
+ validEntries.length === 0 &&
94
+ (!additionalStats || Object.keys(additionalStats).length === 0)
95
+ ) {
96
return
97
}
98
0 commit comments