Verbesserungen im Prozess

This commit is contained in:
Moritz Utcke
2025-03-25 19:15:16 -03:00
parent 0117f94c07
commit 75ade8ebaa
45 changed files with 380 additions and 392 deletions

View File

@@ -26,7 +26,7 @@ if (!user) {
const totalPages = await prisma.objekt.count({
where: user.rolle === Enums.BenutzerRolle.USER ? {
benutzer: {
uid: user.uid
id: user.id
}
} : {}
})
@@ -34,7 +34,7 @@ const totalPages = await prisma.objekt.count({
const objekte = await prisma.objekt.findMany({
where: user.rolle === Enums.BenutzerRolle.USER ? {
benutzer: {
uid: user.uid
id: user.id
},
} : {
...(id ? {OR: [