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.

Format

Kiran K36028de30d20
diff --git a/apps/web/lib/api/links.ts b/apps/web/lib/api/links.ts
index 6b2c08779c..9aca401f18 100644
--- a/apps/web/lib/api/links.ts
+++ b/apps/web/lib/api/links.ts
@@ -6,6 +6,10 @@ import {
} from "@/lib/edge-config";
import prisma from "@/lib/prisma";
import { formatRedisLink, redis } from "@/lib/upstash";
+import {
+ getLinksCountParamsSchema,
+ getLinksQuerySchema,
+} from "@/lib/zod/schemas/links";
import {
DEFAULT_REDIRECTS,
DUB_DOMAINS,
@@ -25,7 +29,6 @@ import { getLinkViaEdge } from "../planetscale";
import { recordLink } from "../tinybird";
import { LinkProps, ProjectProps, RedisLinkProps } from "../types";
import z from "../zod";
-import { getLinksCountParamsSchema, getLinksQuerySchema } from "@/lib/zod/schemas/links";
export async function getLinksForProject({
projectId,
diff --git a/apps/web/lib/auth/index.ts b/apps/web/lib/auth/index.ts
index 707c7fe00e..59cb783b52 100644
--- a/apps/web/lib/auth/index.ts
+++ b/apps/web/lib/auth/index.ts
@@ -432,7 +432,7 @@ export const withSession =
throw new DubApiError({
code: "bad_request",
message:
- "Misconfigured authorization header. Did you forget to add 'Bearer '? Learn more: https://dub.sh/auth ",
+ "Misconfigured authorization header. Did you forget to add 'Bearer '? Learn more: https://dub.sh/auth ",
});
}
const apiKey = authorizationHeader.replace("Bearer ", "");
diff --git a/apps/web/lib/zod/index.ts b/apps/web/lib/zod/index.ts
index b9ca34a5a8..32898654ae 100644
--- a/apps/web/lib/zod/index.ts
+++ b/apps/web/lib/zod/index.ts
@@ -8,4 +8,4 @@ export default z;
export const domainKeySchema = z.object({
domain: z.string().min(1),
key: z.string().min(1),
-});
\ No newline at end of file
+});
diff --git a/apps/web/ui/modals/add-project-modal.tsx b/apps/web/ui/modals/add-project-modal.tsx
index 3c14c2e94e..d75caa544e 100644
--- a/apps/web/ui/modals/add-project-modal.tsx
+++ b/apps/web/ui/modals/add-project-modal.tsx
@@ -142,12 +142,12 @@ function AddProjectModalHelper({
const { error } = await res.json();
const message = error.message;
- if(message.toLowerCase().includes("slug")) {
+ if (message.toLowerCase().includes("slug")) {
alert(message);
setSlugError(message);
}
- if(message.toLowerCase().includes("domain")) {
+ if (message.toLowerCase().includes("domain")) {
setDomainError(message);
}