diff --git a/apps/server/src/modules/authentication/strategy/x-api-key.strategy.ts b/apps/server/src/modules/authentication/strategy/x-api-key.strategy.ts index b3dff6c9533..85ac6474ea0 100644 --- a/apps/server/src/modules/authentication/strategy/x-api-key.strategy.ts +++ b/apps/server/src/modules/authentication/strategy/x-api-key.strategy.ts @@ -9,12 +9,7 @@ export class XApiKeyStrategy extends PassportStrategy(Strategy, 'api-key') { private readonly allowedApiKeys: string[]; constructor(private readonly configService: ConfigService) { - super( - { header: 'X-API-KEY', prefix: '' }, - true, - // eslint-disable-next-line @typescript-eslint/require-await - async (apiKey: string, done: (error: Error | null, data: boolean | null) => void) => this.validate(apiKey, done) - ); + super({ header: 'X-API-KEY', prefix: '' }, true); this.allowedApiKeys = this.configService.get('ADMIN_API__ALLOWED_API_KEYS'); } diff --git a/apps/server/src/modules/server/admin-api.server.module.ts b/apps/server/src/modules/server/admin-api.server.module.ts index 94e7a77531f..e22d0cc604a 100644 --- a/apps/server/src/modules/server/admin-api.server.module.ts +++ b/apps/server/src/modules/server/admin-api.server.module.ts @@ -20,13 +20,10 @@ const serverModules = [ConfigModule.forRoot(createConfigModuleOptions(serverConf MikroOrmModule.forRoot({ ...defaultMikroOrmOptions, type: 'mongo', - // TODO add mongoose options as mongo options (see database.js) clientUrl: DB_URL, password: DB_PASSWORD, user: DB_USERNAME, entities: ALL_ENTITIES, - - // debug: true, // use it for locally debugging of queries }), LoggerModule, ],