Skip to content

Commit 58ef0ab

Browse files
authored
Revert "fix: managed orgs get bookings (#23063)" (#23066)
This reverts commit 13ba680.
1 parent 13ba680 commit 58ef0ab

File tree

7 files changed

+29
-587
lines changed

7 files changed

+29
-587
lines changed

apps/api/v2/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"@axiomhq/winston": "^1.2.0",
3939
"@calcom/platform-constants": "*",
4040
"@calcom/platform-enums": "*",
41-
"@calcom/platform-libraries": "npm:@calcom/[email protected].304",
41+
"@calcom/platform-libraries": "npm:@calcom/[email protected].300",
4242
"@calcom/platform-types": "*",
4343
"@calcom/platform-utils": "*",
4444
"@calcom/prisma": "*",

apps/api/v2/src/ee/event-types-private-links/controllers/event-types-private-links.controller.ts

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,37 @@ import { Permissions } from "@/modules/auth/decorators/permissions/permissions.d
44
import { ApiAuthGuard } from "@/modules/auth/guards/api-auth/api-auth.guard";
55
import { PermissionsGuard } from "@/modules/auth/guards/permissions/permissions.guard";
66
import { EventTypeOwnershipGuard } from "@/modules/event-types/guards/event-type-ownership.guard";
7-
import { Body, Controller, Delete, Get, Param, ParseIntPipe, Patch, Post, UseGuards } from "@nestjs/common";
8-
import { ApiHeader, ApiOperation, ApiTags as DocsTags } from "@nestjs/swagger";
7+
import {
8+
Body,
9+
Controller,
10+
Delete,
11+
Get,
12+
Param,
13+
ParseIntPipe,
14+
Patch,
15+
Post,
16+
UseGuards,
17+
} from "@nestjs/common";
18+
import { ApiHeader, ApiOperation, ApiTags as DocsTags, OmitType } from "@nestjs/swagger";
919

10-
import { EVENT_TYPE_READ, EVENT_TYPE_WRITE, SUCCESS_STATUS } from "@calcom/platform-constants";
20+
import {
21+
EVENT_TYPE_READ,
22+
EVENT_TYPE_WRITE,
23+
SUCCESS_STATUS,
24+
} from "@calcom/platform-constants";
1125
import {
1226
CreatePrivateLinkInput,
1327
CreatePrivateLinkOutput,
1428
DeletePrivateLinkOutput,
1529
GetPrivateLinksOutput,
16-
UpdatePrivateLinkBody,
30+
UpdatePrivateLinkInput,
1731
UpdatePrivateLinkOutput,
1832
} from "@calcom/platform-types";
1933

2034
import { PrivateLinksService } from "../services/private-links.service";
2135

36+
class UpdatePrivateLinkBody extends OmitType(UpdatePrivateLinkInput, ["linkId"] as const) {}
37+
2238
@Controller({
2339
path: "/v2/event-types/:eventTypeId/private-links",
2440
})
@@ -103,3 +119,5 @@ export class EventTypesPrivateLinksController {
103119
};
104120
}
105121
}
122+
123+

0 commit comments

Comments
 (0)