mirror of
https://github.com/immich-app/immich.git
synced 2025-06-01 20:56:38 -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) {
|
if (isNotInAlbum) {
|
||||||
builder
|
builder
|
||||||
.leftJoin(`${builder.alias}.albums`, 'albums')
|
.leftJoin(`${builder.alias}.albums`, 'albums')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user