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

Tim Wilson3897e21a7cf7
diff --git a/apps/web/lib/zod/schemas/tags.ts b/apps/web/lib/zod/schemas/tags.ts
index 8454bdf830..dc2d93868e 100644
--- a/apps/web/lib/zod/schemas/tags.ts
+++ b/apps/web/lib/zod/schemas/tags.ts
@@ -42,7 +42,8 @@ export const getTagsCountQuerySchema = getTagsQuerySchema.omit({
});
export const tagColorSchema = z
- .enum(RESOURCE_COLORS, {
+ // TODO: Remove "pink" after confirming we don't have any pink tags in the database
+ .enum([...RESOURCE_COLORS, "pink"], {
errorMap: () => {
return {
message: `Invalid color. Must be one of: ${RESOURCE_COLORS.join(", ")}`,