@friggframework/core 2.0.0--canary.395.06a8f0c.0 → 2.0.0--canary.395.4cca0c3.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.
@@ -10,7 +10,10 @@ const { GetUserFromBearerToken } = require('../../user/use-cases/get-user-from-b
10
10
  const { integrations, userConfig } = loadAppDefinition();
11
11
  const integrationFactory = new IntegrationFactory(integrations);
12
12
  const userRepository = new UserRepository({ userConfig });
13
- const getUserFromBearerToken = new GetUserFromBearerToken({ userRepository });
13
+ const getUserFromBearerToken = new GetUserFromBearerToken({
14
+ userRepository,
15
+ userConfig,
16
+ });
14
17
 
15
18
  const router = createIntegrationRouter({
16
19
  factory: {
@@ -103,7 +103,7 @@ class IntegrationFactory {
103
103
  userId = integrationRecord.user._id.toString();
104
104
  } else if (userId.toString() !== integrationRecord.user.toString()) {
105
105
  throw new Error(
106
- `Integration ${params.integrationId
106
+ `Integration ${integrationId
107
107
  } does not belong to User ${userId}, ${integrationRecord.user.toString()}`
108
108
  );
109
109
  }
@@ -114,7 +114,7 @@ class IntegrationFactory {
114
114
 
115
115
  const instance = new integrationClass({
116
116
  userId,
117
- integrationId: params.integrationId,
117
+ integrationId,
118
118
  });
119
119
 
120
120
  if (
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.395.06a8f0c.0",
4
+ "version": "2.0.0--canary.395.4cca0c3.0",
5
5
  "dependencies": {
6
6
  "@hapi/boom": "^10.0.1",
7
7
  "aws-sdk": "^2.1200.0",
@@ -22,9 +22,9 @@
22
22
  "uuid": "^9.0.1"
23
23
  },
24
24
  "devDependencies": {
25
- "@friggframework/eslint-config": "2.0.0--canary.395.06a8f0c.0",
26
- "@friggframework/prettier-config": "2.0.0--canary.395.06a8f0c.0",
27
- "@friggframework/test": "2.0.0--canary.395.06a8f0c.0",
25
+ "@friggframework/eslint-config": "2.0.0--canary.395.4cca0c3.0",
26
+ "@friggframework/prettier-config": "2.0.0--canary.395.4cca0c3.0",
27
+ "@friggframework/test": "2.0.0--canary.395.4cca0c3.0",
28
28
  "@types/lodash": "4.17.15",
29
29
  "@typescript-eslint/eslint-plugin": "^8.0.0",
30
30
  "chai": "^4.3.6",
@@ -53,5 +53,5 @@
53
53
  },
54
54
  "homepage": "https://github.com/friggframework/frigg#readme",
55
55
  "description": "",
56
- "gitHead": "06a8f0ca53c15750bf967bf7543e453b2afeb926"
56
+ "gitHead": "4cca0c3988898d86f3d8b0679b05939bb3049848"
57
57
  }