navbar wip

This commit is contained in:
ntr committed 2023-01-11 23:22:15 +11:00
1 parent b91f877045
commit 6c3cac7381
7 files changed
+460 -382

No files matched your search

+1
View File
@@ -24,6 +24,7 @@ export default function createPg(log: Log, prisma: PrismaClient) {
return prisma.want.findMany({
where: { userId: user.id },
include: { _count: { select: { offers: true }} },
orderBy: { offers: { _count: 'desc' } }
});
}