fix: use graceful filtering for previously hard failing blocked users in team events (#26446)

* init

* typefix

* --

* fix test

* update index

* cleanup

* rm unnecessary comments

* improvements

* add tests

* test fixes

* fixes

* fixes

* fixes

* add try catch to make booking fail-open

* Update packages/features/watchlist/operations/check-user-blocking.ts

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>

* fix type

---------

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
This commit is contained in:
Syed Ali Shahbazandcubic-dev-ai[bot] authored and GitHub committed 2026-01-08 08:30:54 -03:00
1 parent 27623926fc
commit 59fca85d92
20 files changed
+1573 -37

No files matched your search

@@ -76,6 +76,13 @@ vi.mock("@calcom/features/watchlist/operations/check-if-users-are-blocked.contro
checkIfUsersAreBlocked: vi.fn().mockResolvedValue(false),
}));
vi.mock("@calcom/features/watchlist/operations/filter-blocked-users.controller", () => ({
filterBlockedUsers: vi.fn().mockImplementation(async (users) => ({
eligibleUsers: users,
blockedCount: 0,
})),
}));
vi.mock("@calcom/features/di/containers/QualifiedHosts", () => ({
getQualifiedHostsService: vi.fn().mockReturnValue({
findQualifiedHostsWithDelegationCredentials: vi.fn().mockResolvedValue({