Skip to content

Commit b8ca1b1

Browse files
committed
1 parent 481509e commit b8ca1b1

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/RestWrite.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)