From c6a42d4b3e0512a726625945b6368a31af1b059d Mon Sep 17 00:00:00 2001 From: gerlach Date: Fri, 6 Feb 2026 11:51:43 +0100 Subject: [PATCH 1/2] fix: Use Partial CollectionDTO for UpdateCollection --- src/collections/domain/repositories/ICollectionsRepository.ts | 2 +- src/collections/domain/useCases/UpdateCollection.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/collections/domain/repositories/ICollectionsRepository.ts b/src/collections/domain/repositories/ICollectionsRepository.ts index cae28415..8569ad13 100644 --- a/src/collections/domain/repositories/ICollectionsRepository.ts +++ b/src/collections/domain/repositories/ICollectionsRepository.ts @@ -45,7 +45,7 @@ export interface ICollectionsRepository { ): Promise updateCollection( collectionIdOrAlias: number | string, - updatedCollection: CollectionDTO + updatedCollection: Partial ): Promise getCollectionFeaturedItems(collectionIdOrAlias: number | string): Promise updateCollectionFeaturedItems( diff --git a/src/collections/domain/useCases/UpdateCollection.ts b/src/collections/domain/useCases/UpdateCollection.ts index f1068086..b32a6e05 100644 --- a/src/collections/domain/useCases/UpdateCollection.ts +++ b/src/collections/domain/useCases/UpdateCollection.ts @@ -19,7 +19,7 @@ export class UpdateCollection implements UseCase { */ async execute( collectionIdOrAlias: number | string, - updatedCollection: CollectionDTO + updatedCollection: Partial ): Promise { return await this.collectionsRepository.updateCollection(collectionIdOrAlias, updatedCollection) } From ab21d01f84d7230dcd688856bbfbe01a3a5909d6 Mon Sep 17 00:00:00 2001 From: gerlach Date: Fri, 6 Feb 2026 12:51:25 +0100 Subject: [PATCH 2/2] fix: Updated CHANGELOG.md --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e56fe504..19ca1bc6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,8 @@ This changelog follows the principles of [Keep a Changelog](https://keepachangel ### Fixed +- Allow partial CollectionDTO for UpdateCollection use case + ### Removed - Removed date fields validations in create and update dataset use cases, since validation is already handled in the backend and SPA frontend (other clients should perform client side validation also). This avoids duplicated logic and keeps the package focused on its core responsibility.