Skip to content

Commit

Permalink
fix: update version apiv2 platform libraries for createNewUsersConnec…
Browse files Browse the repository at this point in the history
…tToOrgIfExists (calcom#15601)
  • Loading branch information
ThyMinimalDev authored Jun 27, 2024
1 parent 5e382ff commit 03311de
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions apps/api/v2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"dependencies": {
"@calcom/platform-constants": "*",
"@calcom/platform-libraries-0.0.13": "npm:@calcom/[email protected]",
"@calcom/platform-libraries-0.0.15": "npm:@calcom/[email protected]",
"@calcom/platform-libraries-0.0.2": "npm:@calcom/[email protected]",
"@calcom/platform-libraries-0.0.4": "npm:@calcom/[email protected]",
"@calcom/platform-libraries-0.0.14": "npm:@calcom/[email protected]",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 03311de

Please sign in to comment.