fix invites

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-08-30 15:18:06 +02:00
parent 9fab18a895
commit b5b126f05d
2 changed files with 12 additions and 4 deletions

View File

@@ -63,6 +63,9 @@ export async function getCurrentProjects(organizationSlug: string) {
where: {
organizationSlug,
},
orderBy: {
eventsCount: 'desc',
},
}),
db.member.findMany({
where: {
@@ -73,6 +76,7 @@ export async function getCurrentProjects(organizationSlug: string) {
db.projectAccess.findMany({
where: {
userId: session.userId,
organizationId: organizationSlug,
},
}),
]);