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.

todo

Kiran K5130ada39188
diff --git a/apps/web/lib/planetscale.ts b/apps/web/lib/planetscale.ts
index a7dd1172b3..bc96daf11d 100644
--- a/apps/web/lib/planetscale.ts
+++ b/apps/web/lib/planetscale.ts
@@ -104,6 +104,7 @@ export async function getRandomKey({
}
// Get project by publishable key
+// TODO: Combine with getWorkspaceViaEdge
export const getProjectByPublishableKey = async (publishableKey: string) => {
if (!DATABASE_URL) return null;
@@ -118,6 +119,8 @@ export const getProjectByPublishableKey = async (publishableKey: string) => {
: null;
};
+// Get link by projectId and identifier
+// TODO: Combine with getLinkViaEdge
export const getLink = async (projectId: string, identifier: string) => {
if (!DATABASE_URL) return null;