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.

Merge branch 'main' into conversion

Kiran K536bc7197299
diff --cc apps/web/lib/planetscale.ts
index 275addf53d,5c1104bf71..2d37f866ce
--- a/apps/web/lib/planetscale.ts
+++ b/apps/web/lib/planetscale.ts
@@@ -30,18 -19,11 +30,9 @@@ export const getWorkspaceViaEdge = asyn
workspaceId.replace("ws_", ""),
])) || {};
- return rows && Array.isArray(rows) && rows.length > 0
- ? (rows[0] as WorkspaceProps)
- : null;
+ return rows && Array.isArray(rows) && rows.length > 0 ? rows[0] : null;
};
- export const incrementWorkspaceAIUsage = async (workspaceId: string) => {
- if (!DATABASE_URL) return null;
-
- return await conn.execute(
- "UPDATE Project p SET p.aiUsage = p.aiUsage + 1 WHERE id = ?",
- [workspaceId.replace("ws_", "")],
- );
- };
-
export const getDomainViaEdge = async (domain: string) => {
if (!DATABASE_URL) return null;