mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
fix(server): multiple exclusion patterns (#17221)
This commit is contained in:
parent
b8b2898c87
commit
faabda4446
2 changed files with 78 additions and 3 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue