mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
refactor(server): simplify config init process (#5702)
This commit is contained in:
parent
5f6d09d3da
commit
03eb5ffc5c
8 changed files with 35 additions and 35 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue