refactor(server): simplify config init process (#5702)

This commit is contained in:
Jason Rasmussen
2024-01-01 13:16:44 -05:00
committed by GitHub
parent 5f6d09d3da
commit 03eb5ffc5c
8 changed files with 35 additions and 35 deletions

View File

@@ -38,7 +38,7 @@ export class AppService {
async init() {
await this.databaseService.init();
await this.configService.init();
await this.jobService.registerHandlers({
await this.jobService.init({
[JobName.ASSET_DELETION]: (data) => this.assetService.handleAssetDeletion(data),
[JobName.ASSET_DELETION_CHECK]: () => this.assetService.handleAssetDeletionCheck(),
[JobName.DELETE_FILES]: (data: IDeleteFilesJob) => this.storageService.handleDeleteFiles(data),