fix(domain-core): notification paylod to string casting

This commit is contained in:
Karol Sójko
2023-09-25 18:24:38 +02:00
parent 2d9b3578b6
commit a02a28774b
@@ -15,10 +15,10 @@ export class NotificationPayload extends ValueObject<NotificationPayloadProps> {
return JSON.stringify({
version: this.props.version,
type: this.props.type.value,
primaryIdentifier: this.props.primaryIdentifier,
primaryIndentifierType: this.props.primaryIndentifierType,
secondaryIdentifier: this.props.secondaryIdentifier,
secondaryIdentifierType: this.props.secondaryIdentifierType,
primaryIdentifier: this.props.primaryIdentifier.value,
primaryIndentifierType: this.props.primaryIndentifierType.value,
secondaryIdentifier: this.props.secondaryIdentifier?.value,
secondaryIdentifierType: this.props.secondaryIdentifierType?.value,
})
}