fix(server): skip stacked assets in duplicate detection (#16380)

* skip stacked assets in duplicate detection

* update sql

* handle stacking after duplicate detection runs
This commit is contained in:
Mert 2025-02-27 19:16:13 +03:00 committed by GitHub
parent a808b8610e
commit a708649504
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 34 additions and 0 deletions

View file

@ -59,6 +59,11 @@ export class DuplicateService extends BaseService {
return JobStatus.FAILED;
}
if (asset.stackId) {
this.logger.debug(`Asset ${id} is part of a stack, skipping`);
return JobStatus.SKIPPED;
}
if (!asset.isVisible) {
this.logger.debug(`Asset ${id} is not visible, skipping`);
return JobStatus.SKIPPED;