File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed
Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -528,16 +528,6 @@ RestWrite.prototype.ensureUniqueAuthDataId = async function () {
528528
529529 if ( ! hasAuthDataId ) { return ; }
530530
531- // Ensure unique indexes exist for auth data providers to prevent race conditions.
532- // This handles providers that were not configured at server startup.
533- const adapter = this . config . database . adapter ;
534- if ( typeof adapter . ensureAuthDataUniqueness === 'function' ) {
535- const providers = Object . keys ( this . data . authData ) . filter (
536- key => this . data . authData [ key ] && this . data . authData [ key ] . id
537- ) ;
538- await Promise . all ( providers . map ( provider => adapter . ensureAuthDataUniqueness ( provider ) ) ) ;
539- }
540-
541531 const r = await Auth . findUsersWithAuthData ( this . config , this . data . authData ) ;
542532 const results = this . filteredObjectsByACL ( r ) ;
543533 if ( results . length > 1 ) {
You can’t perform that action at this time.
0 commit comments