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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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),