Verbesserungen im Prozess
This commit is contained in:
@@ -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: [
|
||||
|
||||
Reference in New Issue
Block a user