Skip to content

Commit

Permalink
fix: usageV2 API endpoint (#6140)
Browse files Browse the repository at this point in the history
  • Loading branch information
arcoraven authored Feb 1, 2025
1 parent 9d5828e commit 66833a8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/service-utils/src/cf-worker/usageV2.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { ServiceName } from "../core/services.js";
import { type UsageV2Event, getTopicName } from "../core/usageV2.js";
import { type UsageV2Event } from "../core/usageV2.js";

/**
* Send events to Kafka.
Expand Down Expand Up @@ -29,8 +29,7 @@ export async function sendUsageV2Events(
? "https://u.thirdweb.com"
: "https://u.thirdweb-dev.com";

const topic = getTopicName(options.productName);
const resp = await fetch(`${baseUrl}/usage-v2/${topic}`, {
const resp = await fetch(`${baseUrl}/usage-v2/${options.productName}`, {
method: "POST",
headers: {
"Content-Type": "application/json",
Expand Down

0 comments on commit 66833a8

Please sign in to comment.