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

Steven Teye57ce54fa3e7
diff --cc apps/web/lib/planetscale.ts
index 446d550a81,5c1104bf71..19b84b4c0c
--- a/apps/web/lib/planetscale.ts
+++ b/apps/web/lib/planetscale.ts
@@@ -20,18 -19,11 +20,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;