refactor: Run migrations and links sync after loading the app (#8582)

This commit is contained in:
Harminder Virk
2024-08-14 14:09:24 +05:30
committed by GitHub
parent 92a7b5b4c0
commit 19d30df624
6 changed files with 104 additions and 55 deletions

View File

@@ -58,11 +58,11 @@ export class RedisDistributedTransactionStorage
async onApplicationPrepareShutdown() {
// Close worker gracefully, i.e. wait for the current jobs to finish
await this.worker.close()
await this.worker?.close()
}
async onApplicationShutdown() {
await this.queue.close()
await this.queue?.close()
}
async onApplicationStart() {