wait on redis exit

This commit is contained in:
einhornimmond 2025-11-27 20:50:33 +01:00
parent 907b61cd3b
commit e032ff7f18

View File

@ -99,7 +99,7 @@ export class AppDatabase {
public async destroy(): Promise<void> { public async destroy(): Promise<void> {
await this.dataSource?.destroy() await this.dataSource?.destroy()
if (this.redisClient) { if (this.redisClient) {
this.redisClient.quit() await this.redisClient.quit()
this.redisClient = undefined this.redisClient = undefined
} }
} }