1
0
mirror of https://github.com/immich-app/immich.git synced 2025-12-07 01:34:26 +02:00

fix(server): don't return archived assets by default (#7278)

* don't show archived results by default

* fix e2e

* generate sql

* set default in dto

---------

Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
This commit is contained in:
Mert
2024-02-20 22:59:26 -05:00
committed by GitHub
parent bb5236ae65
commit eb73f6605b
13 changed files with 68 additions and 51 deletions

View File

@@ -183,7 +183,7 @@ export function searchAssetBuilder(
_.omitBy(
{
...status,
isArchived: isArchived ?? withArchived,
isArchived: isArchived ?? (withArchived ? undefined : false),
encodedVideoPath: isEncoded ? Not(IsNull()) : undefined,
livePhotoVideoId: isMotion ? Not(IsNull()) : undefined,
},