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.

code improvements

Pedro Ladeira3692607c1ecc
diff --git a/apps/web/app/api/ai/support-chat/route.ts b/apps/web/app/api/ai/support-chat/route.ts
index 6ed7015471..a0fa3319bb 100644
--- a/apps/web/app/api/ai/support-chat/route.ts
+++ b/apps/web/app/api/ai/support-chat/route.ts
@@ -162,7 +162,7 @@ const postSupportChatMessage = async ({
text: text.slice(0, 3000),
unfurl_links: false,
});
- return (res.ts as string | undefined) ?? threadTs;
+ return threadTs ?? (res.ts as string | undefined);
} catch (e) {
console.error("[Slack] Failed to post support chat message", e);
return threadTs;