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.

fix the tests

Kiran K4aa7aa6e0f33
diff --git a/apps/web/lib/zod/schemas/links.ts b/apps/web/lib/zod/schemas/links.ts
index 221ab4c40b..d0ab5bbe5a 100644
--- a/apps/web/lib/zod/schemas/links.ts
+++ b/apps/web/lib/zod/schemas/links.ts
@@ -461,6 +461,10 @@ export const LinkSchema = z
tags: TagSchema.array()
.nullable()
.describe("The tags assigned to the short link."),
+ folderId: z
+ .string()
+ .nullable()
+ .describe("The unique ID of the folder assigned to the short link."),
comments: z
.string()
.nullable()
diff --git a/apps/web/tests/utils/schema.ts b/apps/web/tests/utils/schema.ts
index b51a35311b..260274f841 100644
--- a/apps/web/tests/utils/schema.ts
+++ b/apps/web/tests/utils/schema.ts
@@ -40,6 +40,7 @@ export const expectedLink: Partial<Link> & {
updatedAt: expect.any(String),
expiredUrl: null,
externalId: null,
+ folderId: null,
};
export const expectedTag: Partial<Tag> = {