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 schema.ts

Steven Teyef54ae07bb9a
diff --git a/apps/web/tests/utils/schema.ts b/apps/web/tests/utils/schema.ts
index ea6550016f..c99a2da5fc 100644
--- a/apps/web/tests/utils/schema.ts
+++ b/apps/web/tests/utils/schema.ts
@@ -1,7 +1,7 @@
import { Link, Project, Tag } from "@prisma/client";
import { expect } from "vitest";
-export const expectedLink: Partial<Link> = {
+export const expectedLink: Partial<Link> & { tagId: string | null } = {
id: expect.any(String),
key: expect.any(String),
domain: "dub.sh",
@@ -25,6 +25,7 @@ export const expectedLink: Partial<Link> = {
clicks: 0,
lastClicked: null,
checkDisabled: false,
+ tagId: null, // backwards compatibility
comments: null,
createdAt: expect.any(String),
updatedAt: expect.any(String),