Skip to content

Commit dd19cd2

Browse files
committed
fix: sending wrong payload
1 parent b36dcf5 commit dd19cd2

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

src/collections/infra/repositories/CollectionsRepository.ts

+1-7
Original file line numberDiff line numberDiff line change
@@ -227,13 +227,7 @@ export class CollectionsRepository extends ApiRepository implements ICollections
227227
dataverseType: collectionDTO.type,
228228
...(collectionDTO.description && { description: collectionDTO.description }),
229229
...(collectionDTO.affiliation && { affiliation: collectionDTO.affiliation }),
230-
metadataBlocks: {
231-
metadataBlockNames: collectionDTO.metadataBlockNames,
232-
facetIds: collectionDTO.facetIds,
233-
inputLevels: inputLevelsRequestBody,
234-
inheritFacetsFromParent: metadataBlocksRequestBody.inheritFacetsFromParent,
235-
inheritMetadataBlocksFromParent: metadataBlocksRequestBody.inheritMetadataBlocksFromParent
236-
}
230+
metadataBlocks: metadataBlocksRequestBody
237231
}
238232
}
239233

test/unit/collections/CollectionsRepository.test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ describe('CollectionsRepository', () => {
148148

149149
// describe('createCollection', () => {
150150
// const testNewCollection = createCollectionDTO()
151-
//TODO:Remove
152151

153152
// const testCreatedCollectionId = 1
154153
// const testCreateCollectionResponse = {

0 commit comments

Comments
 (0)