Skip to content

Commit 801ba50

Browse files
fix: empty event type array if no username (calcom#25178)
Co-authored-by: Morgan <33722304+ThyMinimalDev@users.noreply.github.com>
1 parent 74af231 commit 801ba50

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

apps/api/v2/src/ee/event-types/event-types_2024_06_14/services/event-types.service.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,10 @@ export class EventTypesService_2024_06_14 {
263263
return [dynamicEventType];
264264
}
265265

266+
if (authUser?.id) {
267+
return await this.getUserEventTypes(authUser.id);
268+
}
269+
266270
return [];
267271
}
268272

docs/api-reference/v2/openapi.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22678,7 +22678,8 @@
2267822678
"OOO_CREATED",
2267922679
"AFTER_HOSTS_CAL_VIDEO_NO_SHOW",
2268022680
"AFTER_GUESTS_CAL_VIDEO_NO_SHOW",
22681-
"FORM_SUBMITTED_NO_EVENT"
22681+
"FORM_SUBMITTED_NO_EVENT",
22682+
"DELEGATION_CREDENTIAL_ERROR"
2268222683
]
2268322684
},
2268422685
"secret": {
@@ -22745,7 +22746,8 @@
2274522746
"OOO_CREATED",
2274622747
"AFTER_HOSTS_CAL_VIDEO_NO_SHOW",
2274722748
"AFTER_GUESTS_CAL_VIDEO_NO_SHOW",
22748-
"FORM_SUBMITTED_NO_EVENT"
22749+
"FORM_SUBMITTED_NO_EVENT",
22750+
"DELEGATION_CREDENTIAL_ERROR"
2274922751
]
2275022752
},
2275122753
"secret": {
@@ -27394,6 +27396,10 @@
2739427396
"email": {
2739527397
"type": "string"
2739627398
},
27399+
"name": {
27400+
"type": "string",
27401+
"nullable": true
27402+
},
2739727403
"timeFormat": {
2739827404
"type": "number"
2739927405
},
@@ -27419,6 +27425,7 @@
2741927425
"id",
2742027426
"username",
2742127427
"email",
27428+
"name",
2742227429
"timeFormat",
2742327430
"defaultScheduleId",
2742427431
"weekStart",

0 commit comments

Comments
 (0)