Skip to content

Commit

Permalink
fix: optional call offer date fields (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
lotharking authored Dec 13, 2024
1 parent 56c38ce commit 40f71a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/model/src/messages/calls/CallOfferRequestMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ export class CallOfferRequestMessage extends BaseMessage {
public static readonly type = MessageType.CallOfferRequestMessage

@IsOptional()
@Transform(({ value }) => DateParser(value))
@Transform(({ value }) => (value ? DateParser(value) : undefined))
public offerExpirationTime?: Date

@IsOptional()
@Transform(({ value }) => DateParser(value))
@Transform(({ value }) => (value ? DateParser(value) : undefined))
public offerStartTime?: Date

@Expose()
Expand Down

0 comments on commit 40f71a7

Please sign in to comment.