Include administrated hunts in home
This commit is contained in:
@@ -34,6 +34,8 @@ async function getOwnHunts(userId: number | undefined) {
|
|||||||
},
|
},
|
||||||
where: {
|
where: {
|
||||||
deletedAt: null,
|
deletedAt: null,
|
||||||
|
OR: [
|
||||||
|
{
|
||||||
teams: {
|
teams: {
|
||||||
some: {
|
some: {
|
||||||
OR: [
|
OR: [
|
||||||
@@ -50,6 +52,18 @@ async function getOwnHunts(userId: number | undefined) {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
creatorId: userId
|
||||||
|
},
|
||||||
|
{
|
||||||
|
members: {
|
||||||
|
some: {
|
||||||
|
memberId: userId
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user