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.

lastClicked

Steven Tey637e63fcc0a4
diff --git a/components/app/links/link-sort.tsx b/components/app/links/link-sort.tsx
index fca1b6e034..5e048c7744 100644
--- a/components/app/links/link-sort.tsx
+++ b/components/app/links/link-sort.tsx
@@ -16,11 +16,11 @@ const sortOptions = [
slug: "clicks",
order: "desc",
},
- // {
- // display: "Last Clicked",
- // slug: "lastClicked",
- // order: "asc",
- // },
+ {
+ display: "Last Clicked",
+ slug: "lastClicked",
+ order: "asc",
+ },
];
export default function LinkSort() {
diff --git a/prisma/schema.prisma b/prisma/schema.prisma
index 6ed64c011a..86580e4365 100644
--- a/prisma/schema.prisma
+++ b/prisma/schema.prisma
@@ -215,7 +215,7 @@ model Link {
@@index(password)
@@index(createdAt(sort: Desc))
@@index(clicks(sort: Desc))
- @@index(lastClicked(sort: Asc))
+ @@index(lastClicked)
@@index(userId)
@@fulltext([key, url])
}