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 pull request #1723 from dubinc/update-get-link-throw

Steven Tey1854842e2391
diff --cc apps/web/lib/actions/invite-partner.ts
index 4c39c64fac,f6328166a9..4e4a37f860
--- a/apps/web/lib/actions/invite-partner.ts
+++ b/apps/web/lib/actions/invite-partner.ts
@@@ -31,19 -30,9 +31,19 @@@ export const invitePartnerAction = auth
}),
getLinkOrThrow({
- workspace,
+ workspaceId: workspace.id,
linkId,
}),
+
+ prisma.tag.findMany({
+ where: {
+ links: {
+ some: {
+ linkId,
+ },
+ },
+ },
+ }),
]);
const [