Skip to content

Commit 0121d4d

Browse files
committed
Enable blocking connection for Redis and set async flag to false in identity sync
1 parent 0292158 commit 0121d4d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/app.module.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ import { MigrationsModule } from './migrations/migrations.module';
8181
host: configService.get('ioredis.host'),
8282
port: configService.get('ioredis.port'),
8383
},
84+
blockingConnection: true,
8485
}),
8586
}),
8687
FactorydriveModule.forRootAsync({

src/core/backends/backends.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export class BackendsController {
8484
public async syncAllIdentities(@Res() res: Response, @Query('async') asyncQuery: string) {
8585
const async = /true|on|yes|1/i.test(asyncQuery);
8686
const data = await this.backendsService.syncAllIdentities({
87-
async,
87+
async: false,
8888
});
8989
return res.status(HttpStatus.ACCEPTED).json({ async, data });
9090
}

0 commit comments

Comments
 (0)