refactor: SCIM - handleGroupEvents (#20537)
* Add logging to `handleGroupEvents` * `createUsersAndConnectOrg` skipDuplicates when creating new users * `ProfileRepository.createMany` to get username from `orgAutoAcceptEmail` * Refactor `createUsersAndConnectToOrg` to use `createMany` instead of individual db calls * Add error logging to `sendSignupToOrganizationEmail` * Move `sendSignupToOrganizationEmail` to a `Promise.allSettled` * Add `createManyForExistingUsers` and `createManyPromise` * Move creating existing users profiles to `ProfileRepository.createManyForExistingUsers` * Move `sendExistingUserTeamInviteEmails` to a `Promise.allSettled` * Refactor `createUsersAndConnectToOrg` to use `ProfileRepository.createManyPromise` * Type fix * Create `generateNewChildEventTypeDataForDB` * Create `addNewMembersToEventTypes` * Type fix * Type fix * Type fix * `createMany` new workflowsOnEventTypes * Introduce `DATABASE_CHUNK_SIZE` * Batch connect children event types * Batch connect profiles to existing users
This commit is contained in:
1 parent
31ccdba203
commit
5bfb6fc148
9 files changed
+405
-107
No files matched your search
@@ -441,3 +441,5 @@ NEXT_PUBLIC_QUICK_AVAILABILITY_ROLLOUT=10
|
||||
# Deprecated. Use NEXT_PUBLIC_BODY_SCRIPTS instead. NEXT_PUBLIC_HEAD_SCRIPTS are now injected into the body only.
|
||||
NEXT_PUBLIC_HEAD_SCRIPTS=
|
||||
NEXT_PUBLIC_BODY_SCRIPTS=
|
||||
|
||||
DATABASE_CHUNK_SIZE=
|
||||
Reference in new issue
Block a user