We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d5828e commit 66833a8Copy full SHA for 66833a8
packages/service-utils/src/cf-worker/usageV2.ts
@@ -1,5 +1,5 @@
1
import type { ServiceName } from "../core/services.js";
2
-import { type UsageV2Event, getTopicName } from "../core/usageV2.js";
+import { type UsageV2Event } from "../core/usageV2.js";
3
4
/**
5
* Send events to Kafka.
@@ -29,8 +29,7 @@ export async function sendUsageV2Events(
29
? "https://u.thirdweb.com"
30
: "https://u.thirdweb-dev.com";
31
32
- const topic = getTopicName(options.productName);
33
- const resp = await fetch(`${baseUrl}/usage-v2/${topic}`, {
+ const resp = await fetch(`${baseUrl}/usage-v2/${options.productName}`, {
34
method: "POST",
35
headers: {
36
"Content-Type": "application/json",
0 commit comments