fix(server): multiple exclusion patterns (#17221)

This commit is contained in:
Jonathan Jogenfors 2025-03-31 16:16:30 +02:00 committed by GitHub
parent b8b2898c87
commit faabda4446
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 78 additions and 3 deletions

View file

@ -1053,7 +1053,7 @@ export class AssetRepository {
.where((eb) =>
eb.or([
eb.not(eb.or(paths.map((path) => eb('originalPath', 'like', path)))),
eb('originalPath', 'like', exclusions.join('|')),
eb.or(exclusions.map((path) => eb('originalPath', 'like', path))),
]),
)
.executeTakeFirstOrThrow();