Skip to content

Commit 1fdd042

Browse files
fix: missing await in updateEventType old endpoint (calcom#24911)
1 parent 0bf0749 commit 1fdd042

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export class EventTypesService_2024_04_15 {
129129
}
130130

131131
async updateEventType(eventTypeId: number, body: UpdateEventTypeInput_2024_04_15, user: UserWithProfile) {
132-
this.checkCanUpdateEventType(user.id, eventTypeId);
132+
await this.checkCanUpdateEventType(user.id, eventTypeId);
133133
const eventTypeUser = await this.getUserToUpdateEvent(user);
134134
const bookingFields = [...(body.bookingFields || [])];
135135

0 commit comments

Comments
 (0)