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.

wip

Kiran K56ca0acdce5b
diff --git a/apps/web/app/api/links/[linkId]/route.ts b/apps/web/app/api/links/[linkId]/route.ts
index 58eb1d0e9b..34b2fc5b5b 100644
--- a/apps/web/app/api/links/[linkId]/route.ts
+++ b/apps/web/app/api/links/[linkId]/route.ts
@@ -27,7 +27,7 @@ export const PUT = withAuth(async ({ req, headers, project, link }) => {
if (updatedLink.projectId !== link?.projectId) {
throw new DubApiError({
code: "forbidden",
- message: "Transferring links to another project is not yet supported.",
+ message: "Transferring links to another workspace is not yet supported.",
});
}
diff --git a/apps/web/app/api/links/[linkId]/transfer/route.ts b/apps/web/app/api/links/[linkId]/transfer/route.ts
index 1622726686..f3768fec21 100644
--- a/apps/web/app/api/links/[linkId]/transfer/route.ts
+++ b/apps/web/app/api/links/[linkId]/transfer/route.ts
@@ -35,14 +35,14 @@ export const POST = withAuth(async ({ req, headers, session, link }) => {
if (!newProject || newProject.users.length === 0) {
throw new DubApiError({
code: "not_found",
- message: "New project not found.",
+ message: "New workspace not found.",
});
}
if (newProject.linksUsage >= newProject.linksLimit) {
throw new DubApiError({
code: "forbidden",
- message: "New project has reached its link limit.",
+ message: "New workspace has reached its link limit.",
});
}
diff --git a/apps/web/app/api/links/bulk/route.ts b/apps/web/app/api/links/bulk/route.ts
index e311b774fe..93e42dffd3 100644
--- a/apps/web/app/api/links/bulk/route.ts
+++ b/apps/web/app/api/links/bulk/route.ts
@@ -13,7 +13,7 @@ export const POST = withAuth(
throw new DubApiError({
code: "bad_request",
message:
- "Missing project. Bulk link creation is only available for custom domain projects.",
+ "Missing workspace. Bulk link creation is only available for custom domain workspaces.",
});
}
const links = bulkCreateLinksBodySchema.parse(await req.json());
diff --git a/apps/web/app/api/projects/[slug]/invites/route.tsx b/apps/web/app/api/projects/[slug]/invites/route.tsx
index 3b25c76d18..3927ab5b5e 100644
--- a/apps/web/app/api/projects/[slug]/invites/route.tsx
+++ b/apps/web/app/api/projects/[slug]/invites/route.tsx
@@ -54,7 +54,7 @@ export const POST = withAuth(
if (alreadyInTeam) {
throw new DubApiError({
code: "bad_request",
- message: "User already exists in this project.",
+ message: "User already exists in this workspace.",
});
}
diff --git a/apps/web/app/api/projects/[slug]/users/route.ts b/apps/web/app/api/projects/[slug]/users/route.ts
index 9435fc428a..32aa06cea4 100644
--- a/apps/web/app/api/projects/[slug]/users/route.ts
+++ b/apps/web/app/api/projects/[slug]/users/route.ts
@@ -93,7 +93,7 @@ export const DELETE = withAuth(
throw new DubApiError({
code: "bad_request",
message:
- "Cannot remove owner from project. Please transfer ownership to another user first.",
+ "Cannot remove owner from workspace. Please transfer ownership to another user first.",
});
}
const response = await prisma.projectUsers.delete({