Skip to content

Commit

Permalink
chore: send referral id in the api
Browse files Browse the repository at this point in the history
  • Loading branch information
Camila Sosa Morales committed Jan 24, 2025
1 parent f23eaaa commit 979d8cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/components/Eliza/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ export const createSubscription = async (
projectId?: string,
productId?: string,
token?: string,
referralId?: string,
): Promise<{
ok: boolean;
data?: {
Expand Down Expand Up @@ -269,6 +270,9 @@ export const createSubscription = async (
id: productId,
quantity: 1,
},
metadata: {
referralId,
},
}),
},
);
Expand Down
2 changes: 0 additions & 2 deletions src/components/Eliza/components/SubscriptionModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ export const SubscriptionModal: React.FC<SubscriptionModalProps> = ({

setIsLoading(true);

// const referralId = window.promotekit_referral;

const subscriptionCreationResponse = await createSubscription(
activeProjectId,
productId,
Expand Down

0 comments on commit 979d8cc

Please sign in to comment.