diff --git a/src/app/api/links/route.ts b/src/app/api/links/route.ts index 51f9035c..58896cdb 100644 --- a/src/app/api/links/route.ts +++ b/src/app/api/links/route.ts @@ -8,9 +8,11 @@ export async function GET(req: NextRequest) { try { let items; if (hubId) { - items = await db.query.links.findMany({ - where: eq(links.hubId, hubId), - }); + items = await db + .select() + .from(links) + .where(eq(links.hubId, hubId)) + .orderBy(links.createdAt); } else { items = await db.query.links.findMany(); } diff --git a/src/components/app/link-card/full-link-card.tsx b/src/components/app/link-card/full-link-card.tsx index 0238020d..3119c797 100644 --- a/src/components/app/link-card/full-link-card.tsx +++ b/src/components/app/link-card/full-link-card.tsx @@ -63,7 +63,7 @@ export function FullLinkCard({
{title}
-{description}
+{description}