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.

"fd_" → "fold_"

Steven Tey583598a41d00
diff --git a/apps/web/app/api/folders/route.ts b/apps/web/app/api/folders/route.ts
index 94a2fc78de..e952d2759d 100644
--- a/apps/web/app/api/folders/route.ts
+++ b/apps/web/app/api/folders/route.ts
@@ -59,7 +59,7 @@ export const POST = withWorkspace(
try {
const newFolder = await prisma.folder.create({
data: {
- id: createId({ prefix: "fd_" }),
+ id: createId({ prefix: "fold_" }),
projectId: workspace.id,
name,
accessLevel,
diff --git a/apps/web/lib/api/utils.ts b/apps/web/lib/api/utils.ts
index aec1c56a84..512fe51b67 100644
--- a/apps/web/lib/api/utils.ts
+++ b/apps/web/lib/api/utils.ts
@@ -71,7 +71,7 @@ const prefixes = [
"pga_",
"dub_embed_",
"inv_",
- "fd_",
+ "fold_",
] as const;
export const createId = ({