Skip to content

Commit 66833a8

Browse files
authored
fix: usageV2 API endpoint (#6140)
1 parent 9d5828e commit 66833a8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/service-utils/src/cf-worker/usageV2.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { ServiceName } from "../core/services.js";
2-
import { type UsageV2Event, getTopicName } from "../core/usageV2.js";
2+
import { type UsageV2Event } from "../core/usageV2.js";
33

44
/**
55
* Send events to Kafka.
@@ -29,8 +29,7 @@ export async function sendUsageV2Events(
2929
? "https://u.thirdweb.com"
3030
: "https://u.thirdweb-dev.com";
3131

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

0 commit comments

Comments
 (0)