We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8426af commit d3880ecCopy full SHA for d3880ec
apis/cloudflare/src/billing.ts
@@ -8,10 +8,6 @@ function isBrainModel(model: string): boolean {
8
}
9
10
function buildPayloadEvent(event: BillingEvent) {
11
- if (!event.org_id) {
12
- console.warn("billing event skipped: missing org_id");
13
- return null;
14
- }
15
if (!event.model) {
16
console.warn("billing event skipped: missing model");
17
return null;
@@ -20,6 +16,11 @@ function buildPayloadEvent(event: BillingEvent) {
20
if (!isBrainModel(event.model)) {
21
22
18
19
+
+ if (!event.org_id) {
+ console.warn("billing event skipped: missing org_id");
+ return null;
23
+ }
24
if (!event.resolved_model) {
25
console.warn("billing event skipped: missing resolved_model");
26
0 commit comments