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.

remove `ws_` polyfill

Steven Teyd98e16cfd1a0
diff --git a/apps/web/lib/planetscale.ts b/apps/web/lib/planetscale.ts
index e100958a8e..9768b2a7c4 100644
--- a/apps/web/lib/planetscale.ts
+++ b/apps/web/lib/planetscale.ts
@@ -15,8 +15,9 @@ export const getWorkspaceViaEdge = async (workspaceId: string) => {
if (!DATABASE_URL) return null;
const { rows } =
- (await conn.execute("SELECT * FROM Project WHERE id = ?", [workspaceId])) ||
- {};
+ (await conn.execute("SELECT * FROM Project WHERE id = ?", [
+ workspaceId.replace("ws_", ""),
+ ])) || {};
return rows && Array.isArray(rows) && rows.length > 0
? (rows[0] as WorkspaceProps)