feat: Prevent watchlisted entities from creating bookings (#19107)

* Add `searchForAllBlockedRecords` to watchlist repository

* Create `checkIfUsersAreBlocked`

* Call `checkIfUsersAreBlocked` in `loadAndValidateUsers`

* Draft test

* Add tests

* Type fix

* Type fix
This commit is contained in:
Joe Au-Yeung authored and GitHub committed 2025-03-28 01:11:10 +00:00
1 parent fc8ff2d4ae
commit c0aa97178c
8 files changed
+366 -1

No files matched your search

+1
View File
@@ -55,6 +55,7 @@ const user: User & { credentials: CredentialPayload[] } = {
allowDynamicBooking: true,
timeFormat: 12,
travelSchedules: [],
locked: false,
};
const customInputs: CustomInputSchema[] = [];