Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

small fixes

Steven Tey57386bf53a79
diff --git a/apps/web/app/(ee)/partners.dub.co/(dashboard)/referrals/page-client.tsx b/apps/web/app/(ee)/partners.dub.co/(dashboard)/referrals/page-client.tsx
index c0b9cbd07c..2eb3d7729b 100644
--- a/apps/web/app/(ee)/partners.dub.co/(dashboard)/referrals/page-client.tsx
+++ b/apps/web/app/(ee)/partners.dub.co/(dashboard)/referrals/page-client.tsx
@@ -351,9 +351,9 @@ function ReferralRewards() {
</p>
<ul className="flex flex-col gap-2">
<ReferralRewardListItem icon={UserArrowRight}>
- You get {NETWORK_REFERRAL_REWARD.amountInPercentage}% of your
- referees&apos; payout fees for the first{" "}
- {NETWORK_REFERRAL_REWARD.maxDuration} months.
+ Earn {NETWORK_REFERRAL_REWARD.amountInPercentage}% of your referred
+ partners&apos; payout fees for the first{" "}
+ {NETWORK_REFERRAL_REWARD.maxDuration} months
</ReferralRewardListItem>
<ReferralRewardListItem icon={Gift}>
@@ -362,7 +362,7 @@ function ReferralRewards() {
minimumFractionDigits: 0,
maximumFractionDigits: 0,
})}{" "}
- in referral bonus earnings.
+ in referral bonus earnings
</ReferralRewardListItem>
</ul>
</div>
@@ -600,14 +600,14 @@ function ReferralsPromoCard() {
<p className="text-sm font-normal text-neutral-200">
Bring on other partners to the Dub network, and earn from their
activity for up to {NETWORK_REFERRAL_REWARD.maxDuration} months.{" "}
- <Link
+ {/* <Link
href="https://dub.co/docs/partners/quickstart"
target="_blank"
rel="noopener noreferrer"
className="text-neutral-200 underline decoration-neutral-400 underline-offset-2 hover:decoration-neutral-300"
>
Learn more
- </Link>
+ </Link> */}
</p>
</div>
</div>
diff --git a/apps/web/lib/zod/schemas/sales.ts b/apps/web/lib/zod/schemas/sales.ts
index 5a2c52b3a2..5c50793cbc 100644
--- a/apps/web/lib/zod/schemas/sales.ts
+++ b/apps/web/lib/zod/schemas/sales.ts
@@ -45,6 +45,7 @@ export const trackSaleRequestSchema = z.object({
"paddle",
"apple",
"revenuecat",
+ "dub",
"custom",
])
.default("custom")
diff --git a/apps/web/scripts/migrations/backfill-partner-usernames.ts b/apps/web/scripts/migrations/backfill-partner-usernames.ts
index 45304904e6..aac9628f87 100644
--- a/apps/web/scripts/migrations/backfill-partner-usernames.ts
+++ b/apps/web/scripts/migrations/backfill-partner-usernames.ts
@@ -8,7 +8,7 @@ const BATCH_SIZE = 100;
async function main() {
let totalProcessed = 0;
- while (totalProcessed < 200) {
+ while (true) {
const partners = await prisma.partner.findMany({
where: {
username: null,
@@ -73,20 +73,18 @@ async function main() {
}
}
- console.log(usernameEntries);
-
- // await Promise.allSettled(
- // usernameEntries.map(({ id, username }) =>
- // prisma.partner.update({
- // where: {
- // id,
- // },
- // data: {
- // username,
- // },
- // }),
- // ),
- // );
+ await Promise.allSettled(
+ usernameEntries.map(({ id, username }) =>
+ prisma.partner.update({
+ where: {
+ id,
+ },
+ data: {
+ username,
+ },
+ }),
+ ),
+ );
totalProcessed += partners.length;