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.

include archived links when there's a search query

Steven Tey0279fd5b9e89
diff --git a/lib/api/links.ts b/lib/api/links.ts
index 5aa814e20c..4882b93287 100644
--- a/lib/api/links.ts
+++ b/lib/api/links.ts
@@ -35,7 +35,7 @@ export async function getLinksForProject({
return await prisma.link.findMany({
where: {
projectId,
- archived: showArchived ? undefined : false,
+ archived: showArchived || search ? undefined : false,
...(domain && { domain }),
...(search && {
key: { search },