mirror of
https://github.com/immich-app/immich.git
synced 2025-12-20 01:11:46 +03:00
fix(server): multiple exclusion patterns (#17221)
This commit is contained in:
committed by
GitHub
parent
b8b2898c87
commit
faabda4446
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user