Skip to content

Commit 29998f9

Browse files
authored
Merge pull request #192 from IQSS/189-handle-isreleased-property-as-boolean
fix: change the data type of isReleased to boolean
2 parents 0eaf2df + 6406015 commit 29998f9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/collections/domain/models/Collection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export interface Collection {
44
id: number
55
alias: string
66
name: string
7-
isReleased: string
7+
isReleased: boolean
88
affiliation?: string
99
description?: string
1010
isPartOf: DvObjectOwnerNode

src/collections/infra/repositories/transformers/CollectionPayload.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export interface CollectionPayload {
55
alias: string
66
name: string
77
affiliation?: string
8-
isReleased: string
8+
isReleased: boolean
99
description?: string
1010
isPartOf: OwnerNodePayload
1111
inputLevels?: CollectionInputLevelPayload[]

test/testHelpers/collections/collectionHelper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { NewCollectionRequestPayload } from '../../../src/collections/infra/repo
88
import { CollectionFacetPayload } from '../../../src/collections/infra/repositories/transformers/CollectionFacetPayload'
99

1010
const COLLECTION_ID = 11111
11-
const COLLECTION_IS_RELEASED = 'true'
11+
const COLLECTION_IS_RELEASED = true
1212
const COLLECTION_ALIAS_STR = 'secondCollection'
1313
const COLLECTION_NAME_STR = 'Laboratory Research'
1414
const COLLECTION_AFFILIATION_STR = 'Laboratory Research Corporation'

0 commit comments

Comments
 (0)