mirror of
https://github.com/immich-app/immich.git
synced 2025-05-24 02:13:51 -04:00
Merge 98c8e2b091364ee2e5d8e3f98ddc601cc13a5d0e into 4d20b11f256c40e3894c229ed638d7ea04ebdc44
This commit is contained in:
commit
b07c036de2
@ -108,6 +108,12 @@ export function searchAssetBuilder(
|
||||
),
|
||||
);
|
||||
|
||||
if ((isArchived || withArchived) && options.userIds && options.userIds.length > 0) {
|
||||
builder.andWhere(`NOT (${builder.alias}.isArchived = true AND ${builder.alias}.ownerId != :userId)`, {
|
||||
userId: options.userIds[0],
|
||||
});
|
||||
}
|
||||
|
||||
if (isNotInAlbum) {
|
||||
builder
|
||||
.leftJoin(`${builder.alias}.albums`, 'albums')
|
||||
|
Loading…
x
Reference in New Issue
Block a user