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.

JsonNull → DbNull

Steven Tey44585d89aee8
diff --git a/apps/web/app/(ee)/api/bounties/[bountyId]/route.ts b/apps/web/app/(ee)/api/bounties/[bountyId]/route.ts
index f2555cac01..1d6813a93b 100644
--- a/apps/web/app/(ee)/api/bounties/[bountyId]/route.ts
+++ b/apps/web/app/(ee)/api/bounties/[bountyId]/route.ts
@@ -108,7 +108,7 @@ export const PATCH = withWorkspace(
rewardAmount,
...(bounty.type === "submission" &&
submissionRequirements !== undefined && {
- submissionRequirements: submissionRequirements ?? Prisma.JsonNull,
+ submissionRequirements: submissionRequirements ?? Prisma.DbNull,
}),
...(updatedPartnerGroups && {
groups: {
diff --git a/apps/web/app/sitemap.ts b/apps/web/app/sitemap.ts
index 7d9e806dcb..fcf28e35d2 100644
--- a/apps/web/app/sitemap.ts
+++ b/apps/web/app/sitemap.ts
@@ -17,7 +17,7 @@ export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
const programs = await prisma.program.findMany({
where: {
landerData: {
- not: Prisma.JsonNull,
+ not: Prisma.AnyNull,
},
landerPublishedAt: {
not: null,
diff --git a/apps/web/lib/actions/partners/create-reward.ts b/apps/web/lib/actions/partners/create-reward.ts
index 375ae61f08..8b66dcf7fb 100644
--- a/apps/web/lib/actions/partners/create-reward.ts
+++ b/apps/web/lib/actions/partners/create-reward.ts
@@ -52,7 +52,7 @@ export const createRewardAction = authActionClient
type,
amount,
maxDuration,
- modifiers: modifiers || Prisma.JsonNull,
+ modifiers: modifiers || Prisma.DbNull,
},
});
diff --git a/apps/web/lib/actions/partners/update-program.ts b/apps/web/lib/actions/partners/update-program.ts
index cf0fbdd00d..c00f535335 100644
--- a/apps/web/lib/actions/partners/update-program.ts
+++ b/apps/web/lib/actions/partners/update-program.ts
@@ -84,7 +84,7 @@ export const updateProgramAction = authActionClient
logo: logoUrl ?? undefined,
wordmark: wordmarkUrl ?? undefined,
brandColor,
- landerData: landerData === null ? Prisma.JsonNull : landerData,
+ landerData: landerData === null ? Prisma.DbNull : landerData,
landerPublishedAt: landerData ? new Date() : undefined,
domain,
url,
diff --git a/apps/web/lib/actions/partners/update-reward.ts b/apps/web/lib/actions/partners/update-reward.ts
index af43643454..b6d962844c 100644
--- a/apps/web/lib/actions/partners/update-reward.ts
+++ b/apps/web/lib/actions/partners/update-reward.ts
@@ -40,7 +40,7 @@ export const updateRewardAction = authActionClient
type,
amount,
maxDuration,
- modifiers: modifiers === null ? Prisma.JsonNull : modifiers,
+ modifiers: modifiers === null ? Prisma.DbNull : modifiers,
},
include: {
program: true,
diff --git a/apps/web/lib/api/links/bulk-create-links.ts b/apps/web/lib/api/links/bulk-create-links.ts
index 9ca4fd6bff..48b898db23 100644
--- a/apps/web/lib/api/links/bulk-create-links.ts
+++ b/apps/web/lib/api/links/bulk-create-links.ts
@@ -72,7 +72,7 @@ export async function bulkCreateLinks({
utm_content,
expiresAt: link.expiresAt ? new Date(link.expiresAt) : null,
geo: link.geo || undefined,
- testVariants: link.testVariants || Prisma.JsonNull,
+ testVariants: link.testVariants || Prisma.DbNull,
};
}),
skipDuplicates: true,
diff --git a/apps/web/lib/api/links/bulk-update-links.ts b/apps/web/lib/api/links/bulk-update-links.ts
index e6b7e6fbd2..e1c25cdeb6 100644
--- a/apps/web/lib/api/links/bulk-update-links.ts
+++ b/apps/web/lib/api/links/bulk-update-links.ts
@@ -54,8 +54,8 @@ export async function bulkUpdateLinks(
? `${R2_URL}/images/${linkIds[0]}_${imageUrlNonce}`
: image,
expiresAt: expiresAt ? new Date(expiresAt) : expiresAt,
- geo: geo === null ? Prisma.JsonNull : geo,
- testVariants: testVariants === null ? Prisma.JsonNull : testVariants,
+ geo: geo === null ? Prisma.DbNull : geo,
+ testVariants: testVariants === null ? Prisma.DbNull : testVariants,
...(url && getParamsFromURL(url)),
// Associate tags by tagNames
diff --git a/apps/web/lib/api/links/create-link.ts b/apps/web/lib/api/links/create-link.ts
index b90b95f153..6ac368d7e6 100644
--- a/apps/web/lib/api/links/create-link.ts
+++ b/apps/web/lib/api/links/create-link.ts
@@ -67,9 +67,9 @@ export async function createLink(link: ProcessedLinkProps) {
utm_term,
utm_content,
expiresAt: expiresAt ? new Date(expiresAt) : null,
- geo: geo || Prisma.JsonNull,
+ geo: geo || Prisma.DbNull,
- testVariants: testVariants || Prisma.JsonNull,
+ testVariants: testVariants || Prisma.DbNull,
testCompletedAt: testCompletedAt ? new Date(testCompletedAt) : null,
testStartedAt: testStartedAt ? new Date(testStartedAt) : null,
diff --git a/apps/web/lib/api/links/update-link.ts b/apps/web/lib/api/links/update-link.ts
index 90e0e68123..a91977fc44 100644
--- a/apps/web/lib/api/links/update-link.ts
+++ b/apps/web/lib/api/links/update-link.ts
@@ -102,9 +102,9 @@ export async function updateLink({
utm_term: utm_term || null,
utm_content: utm_content || null,
expiresAt: expiresAt ? new Date(expiresAt) : null,
- geo: geo || Prisma.JsonNull,
+ geo: geo || Prisma.DbNull,
- testVariants: testVariants || Prisma.JsonNull,
+ testVariants: testVariants || Prisma.DbNull,
testCompletedAt: testCompletedAt ? new Date(testCompletedAt) : null,
testStartedAt: testStartedAt ? new Date(testStartedAt) : null,