hotfix (#19266)
This commit is contained in:
1 parent
d027f8004a
commit
8ada940dc7
1 file changed
+16
-1
@@ -71,7 +71,22 @@ const buildBaseWhereCondition = async ({
|
||||
id: true,
|
||||
},
|
||||
});
|
||||
if (teamsFromOrg.length === 0) return { whereCondition, isEmptyResponse: true };
|
||||
|
||||
if (teamsFromOrg.length === 0) {
|
||||
return {
|
||||
whereCondition: {
|
||||
...whereCondition,
|
||||
OR: [
|
||||
...(whereCondition.OR ?? []),
|
||||
{
|
||||
teamId: ctx.userOrganizationId,
|
||||
isTeamBooking: true,
|
||||
},
|
||||
],
|
||||
},
|
||||
isEmptyResponse: true,
|
||||
};
|
||||
}
|
||||
|
||||
const teamConditional = {
|
||||
id: {
|
||||
|
||||
Reference in new issue
Block a user