Skip to content

High performance self-hosted photo and video management solution.

fix: allow null tagIds in search dto (#25920)

Michel Heusschen732303661bef
diff --git a/server/src/dtos/search.dto.ts b/server/src/dtos/search.dto.ts
index 59fddcc71c..47a1889e47 100644
--- a/server/src/dtos/search.dto.ts
+++ b/server/src/dtos/search.dto.ts
@@ -97,7 +97,7 @@ class BaseSearchDto {
@ValidateUUID({ each: true, optional: true, description: 'Filter by person IDs' })
personIds?: string[];
- @ValidateUUID({ each: true, optional: true, description: 'Filter by tag IDs' })
+ @ValidateUUID({ each: true, optional: true, nullable: true, description: 'Filter by tag IDs' })
tagIds?: string[] | null;
@ValidateUUID({ each: true, optional: true, description: 'Filter by album IDs' })