diff --git a/apps/api/v2/package.json b/apps/api/v2/package.json index a779e9d0140811..d7e6a1b4eb1bb8 100644 --- a/apps/api/v2/package.json +++ b/apps/api/v2/package.json @@ -26,6 +26,7 @@ "dependencies": { "@calcom/platform-constants": "*", "@calcom/platform-libraries-0.0.13": "npm:@calcom/platform-libraries@0.0.13", + "@calcom/platform-libraries-0.0.15": "npm:@calcom/platform-libraries@0.0.15", "@calcom/platform-libraries-0.0.2": "npm:@calcom/platform-libraries@0.0.2", "@calcom/platform-libraries-0.0.4": "npm:@calcom/platform-libraries@0.0.4", "@calcom/platform-libraries-0.0.14": "npm:@calcom/platform-libraries@0.0.14", diff --git a/apps/api/v2/src/modules/oauth-clients/services/oauth-clients-users.service.ts b/apps/api/v2/src/modules/oauth-clients/services/oauth-clients-users.service.ts index ee328bb6a7a452..087fdd2df439e3 100644 --- a/apps/api/v2/src/modules/oauth-clients/services/oauth-clients-users.service.ts +++ b/apps/api/v2/src/modules/oauth-clients/services/oauth-clients-users.service.ts @@ -7,7 +7,7 @@ import { UsersRepository } from "@/modules/users/users.repository"; import { BadRequestException, Injectable } from "@nestjs/common"; import { User } from "@prisma/client"; -import { createNewUsersConnectToOrgIfExists, slugify } from "@calcom/platform-libraries-0.0.2"; +import { createNewUsersConnectToOrgIfExists, slugify } from "@calcom/platform-libraries-0.0.15"; @Injectable() export class OAuthClientUsersService { @@ -36,10 +36,12 @@ export class OAuthClientUsersService { const email = this.getOAuthUserEmail(oAuthClientId, body.email); user = ( await createNewUsersConnectToOrgIfExists({ - invitations: [{ - usernameOrEmail: email, - role: "MEMBER" - }], + invitations: [ + { + usernameOrEmail: email, + role: "MEMBER", + }, + ], teamId: organizationId, isOrg: true, parentId: null,