Skip to content

Commit ed1576c

Browse files
committed
profile not required
1 parent de06c58 commit ed1576c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/cosmos-db/documents/ticketing/event-ticket-profile.doc.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export class EventTicketProfileDoc {
5151
required: false,
5252
})
5353
@IsString()
54-
profile: string = 'https://media.xoxno.com/utils/defaultProfilePic.webp';
54+
profile?: string;
5555

5656
@ApiProperty({
5757
required: false,
@@ -143,6 +143,8 @@ export class EventTicketProfileDoc {
143143

144144
constructor(props?: Partial<EventTicketProfileDoc>) {
145145
Object.assign(this, props);
146+
this.profile =
147+
this.profile || 'https://media.xoxno.com/utils/defaultProfilePic.webp';
146148
this.pk = this.eventId;
147149
}
148150
}

0 commit comments

Comments
 (0)