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.

Update bulk-create-links.ts

Tim Wilson04f9da2aff75
diff --git a/apps/web/lib/api/links/bulk-create-links.ts b/apps/web/lib/api/links/bulk-create-links.ts
index 9b8c13f734..32764a36c9 100644
--- a/apps/web/lib/api/links/bulk-create-links.ts
+++ b/apps/web/lib/api/links/bulk-create-links.ts
@@ -1,6 +1,7 @@
import { ProcessedLinkProps } from "@/lib/types";
import { prisma } from "@dub/prisma";
import { getParamsFromURL, linkConstructorSimple, truncate } from "@dub/utils";
+import { Prisma } from "@prisma/client";
import { waitUntil } from "@vercel/functions";
import { createId } from "../create-id";
import { combineTagIds } from "../tags/combine-tag-ids";
@@ -71,6 +72,7 @@ export async function bulkCreateLinks({
utm_content,
expiresAt: link.expiresAt ? new Date(link.expiresAt) : null,
geo: link.geo || undefined,
+ tests: link.tests || Prisma.JsonNull,
};
}),
skipDuplicates: true,