mirror of
https://github.com/Afilmory/afilmory
synced 2026-04-25 07:15:36 +00:00
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:
@@ -244,6 +244,8 @@ export class DataSyncService {
|
|||||||
if (storageConfig) {
|
if (storageConfig) {
|
||||||
this.photoBuilderService.applyStorageConfig(builder, 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 storageManager = builder.getStorageManager()
|
||||||
const storageObjects = await storageManager.listImages()
|
const storageObjects = await storageManager.listImages()
|
||||||
|
|||||||
Reference in New Issue
Block a user