refactor(server): link live photos as part of metadata extraction instead of queueing job (#16390)

* link live photos helper instead of job

* update test

* queue storage template migration

* queue in onDone

* remove link live photos job
This commit is contained in:
Mert
2025-03-03 17:19:36 +03:00
committed by GitHub
parent eb74fafb00
commit 5698f446f7
6 changed files with 121 additions and 157 deletions
-5
View File
@@ -255,11 +255,6 @@ export class JobService extends BaseService {
this.eventRepository.clientSend('on_asset_update', asset.ownerId, mapAsset(asset));
}
}
await this.jobRepository.queue({ name: JobName.LINK_LIVE_PHOTOS, data: item.data });
break;
}
case JobName.LINK_LIVE_PHOTOS: {
await this.jobRepository.queue({ name: JobName.STORAGE_TEMPLATE_MIGRATION_SINGLE, data: item.data });
break;
}