refactor: Remove duplicate user index creation (#8662)

This commit is contained in:
Corey
2023-06-29 19:15:58 -04:00
committed by GitHub
parent 31805c96ec
commit 3f03bd3c6f
2 changed files with 1 additions and 7 deletions

View File

@@ -554,7 +554,7 @@ describe('DefinedSchemas', () => {
});
});
it('should not delete automatically classes', async () => {
it('should not delete classes automatically', async () => {
await reconfigureServer({
schema: { definitions: [{ className: '_User' }, { className: 'Test' }] },
});

View File

@@ -1716,12 +1716,6 @@ class DatabaseController {
throw error;
});
await this.adapter
.ensureIndex('_User', requiredUserFields, ['username'], 'case_insensitive_username', true)
.catch(error => {
logger.warn('Unable to create case insensitive username index: ', error);
throw error;
});
await this.adapter
.ensureIndex('_User', requiredUserFields, ['username'], 'case_insensitive_username', true)
.catch(error => {