Skip to content

Commit

Permalink
make domain and key mandatory
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-tey committed Feb 24, 2025
1 parent d2b8214 commit 64fe3de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions apps/web/lib/rewardful/import-referrals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,10 @@ async function createReferral({
linkId: link.id,
clickId: nanoid(16),
url: link.url,
domain: link.domain,
key: link.key,
workspaceId: workspace.id,
skipRatelimit: true,
timestamp: new Date(referral.created_at).toISOString(),
});

Expand Down
4 changes: 2 additions & 2 deletions apps/web/lib/tinybird/record-click.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ export async function recordClick({
req: Request;
clickId: string;
linkId: string;
domain?: string;
key?: string;
domain: string;
key: string;
url?: string;
webhookIds?: string[];
workspaceId: string | undefined;
Expand Down

0 comments on commit 64fe3de

Please sign in to comment.