Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading