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

Steven Tey11055abd5652
diff --git a/apps/web/app/api/links/route.ts b/apps/web/app/api/links/route.ts
index 65f25dd53a..eace01ca44 100644
--- a/apps/web/app/api/links/route.ts
+++ b/apps/web/app/api/links/route.ts
@@ -92,9 +92,9 @@ export const POST = withAuth(
if (!project && invalidFavicon) {
await log({
- message: `*${session.user.email}* created a new link (${link.domain}/${
- link.key
- }) for ${link.url} ${
+ message: `*${
+ session?.user?.email || "Anonymous User"
+ }* created a new link (${link.domain}/${link.key}) for ${link.url} ${
invalidFavicon ? " but it has an invalid favicon :thinking_face:" : ""
}`,
type: "links",