Include administrated hunts in home

This commit is contained in:
2025-09-15 15:45:07 +02:00
parent 165e3d1559
commit 1c7d09bfcb
+14
View File
@@ -34,6 +34,8 @@ async function getOwnHunts(userId: number | undefined) {
},
where: {
deletedAt: null,
OR: [
{
teams: {
some: {
OR: [
@@ -50,6 +52,18 @@ async function getOwnHunts(userId: number | undefined) {
]
}
}
},
{
creatorId: userId
},
{
members: {
some: {
memberId: userId
}
}
}
]
}
});
}