@friggframework/core 2.0.0--canary.498.4c6de84.0 → 2.0.0--canary.498.d86d093.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@friggframework/core",
3
3
  "prettier": "@friggframework/prettier-config",
4
- "version": "2.0.0--canary.498.4c6de84.0",
4
+ "version": "2.0.0--canary.498.d86d093.0",
5
5
  "dependencies": {
6
6
  "@aws-sdk/client-apigatewaymanagementapi": "^3.588.0",
7
7
  "@aws-sdk/client-kms": "^3.588.0",
@@ -38,9 +38,9 @@
38
38
  }
39
39
  },
40
40
  "devDependencies": {
41
- "@friggframework/eslint-config": "2.0.0--canary.498.4c6de84.0",
42
- "@friggframework/prettier-config": "2.0.0--canary.498.4c6de84.0",
43
- "@friggframework/test": "2.0.0--canary.498.4c6de84.0",
41
+ "@friggframework/eslint-config": "2.0.0--canary.498.d86d093.0",
42
+ "@friggframework/prettier-config": "2.0.0--canary.498.d86d093.0",
43
+ "@friggframework/test": "2.0.0--canary.498.d86d093.0",
44
44
  "@prisma/client": "^6.17.0",
45
45
  "@types/lodash": "4.17.15",
46
46
  "@typescript-eslint/eslint-plugin": "^8.0.0",
@@ -80,5 +80,5 @@
80
80
  "publishConfig": {
81
81
  "access": "public"
82
82
  },
83
- "gitHead": "4c6de84858cec099d99590fede0596ee003ef5a4"
83
+ "gitHead": "d86d093a4636cba0aed82e9f722c5b3426b2a319"
84
84
  }
@@ -115,6 +115,18 @@ class GetUserFromXFriggHeaders {
115
115
  await this.userRepository.createOrganizationUser({
116
116
  appOrgId,
117
117
  });
118
+
119
+ // Link individual user to newly created org user if individual exists
120
+ if (individualUserData && organizationUserData) {
121
+ console.log('🔍 [GetUserFromXFriggHeaders] Linking individual user to organization user:', {
122
+ individualUserId: individualUserData.id,
123
+ organizationUserId: organizationUserData.id,
124
+ });
125
+ individualUserData = await this.userRepository.linkIndividualToOrganization(
126
+ individualUserData.id,
127
+ organizationUserData.id
128
+ );
129
+ }
118
130
  }
119
131
 
120
132
  console.log('🔍 [GetUserFromXFriggHeaders] Creating User object:', {