feat(data-sync): ensure plugin hooks are ready before listing storage objects

- Added a call to `builder.ensurePluginsReady()` in the DataSyncService to ensure that plugin hooks, such as thumbnail storage exclude filters, are executed prior to listing storage objects.
- This change enhances the reliability of the data synchronization process by ensuring all necessary plugins are initialized before operations commence.

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei
2025-11-14 14:41:02 +08:00
parent f2658cf5a5
commit 2b30668072

View File

@@ -244,6 +244,8 @@ export class DataSyncService {
if (storageConfig) {
this.photoBuilderService.applyStorageConfig(builder, storageConfig)
}
// Ensure plugin hooks (like thumbnail storage exclude filters) run before listing objects
await builder.ensurePluginsReady()
const storageManager = builder.getStorageManager()
const storageObjects = await storageManager.listImages()