@friggframework/core 2.0.0--canary.744.9a69fb7.0 → 2.0.0--canary.744.7e3ee98.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.
@@ -66,10 +66,9 @@ class IntegrationRepositoryMongo extends IntegrationRepositoryInterface {
66
66
  * @returns {Promise<Array>} Array of integration objects (possibly empty)
67
67
  */
68
68
  async findIntegrations({ type, status } = {}) {
69
+ // Prisma's MongoDB connector has no JSON path filter, so a where on
70
+ // config.type throws. The type is filtered after the read.
69
71
  const where = {};
70
- if (type) {
71
- where.config = { path: ['type'], equals: type };
72
- }
73
72
  if (status) {
74
73
  where.status = status;
75
74
  }
@@ -81,7 +80,9 @@ class IntegrationRepositoryMongo extends IntegrationRepositoryInterface {
81
80
  },
82
81
  });
83
82
 
84
- return integrations.map((integration) => ({
83
+ return integrations
84
+ .filter((integration) => !type || integration.config?.type === type)
85
+ .map((integration) => ({
85
86
  id: integration.id,
86
87
  entitiesIds: integration.entities.map((e) => e.id),
87
88
  userId: integration.userId,
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.744.9a69fb7.0",
4
+ "version": "2.0.0--canary.744.7e3ee98.0",
5
5
  "dependencies": {
6
6
  "@aws-sdk/client-apigatewaymanagementapi": "^3.588.0",
7
7
  "@aws-sdk/client-kms": "^3.588.0",
@@ -11,7 +11,7 @@
11
11
  "@aws-sdk/client-sqs": "^3.588.0",
12
12
  "@aws-sdk/client-ssm": "^3.588.0",
13
13
  "@aws-sdk/s3-request-presigner": "^3.588.0",
14
- "@friggframework/schemas": "2.0.0--canary.744.9a69fb7.0",
14
+ "@friggframework/schemas": "2.0.0--canary.744.7e3ee98.0",
15
15
  "@hapi/boom": "^10.0.1",
16
16
  "@opentelemetry/api": "^1.9.1",
17
17
  "@opentelemetry/context-async-hooks": "^2.9.0",
@@ -49,9 +49,9 @@
49
49
  }
50
50
  },
51
51
  "devDependencies": {
52
- "@friggframework/eslint-config": "2.0.0--canary.744.9a69fb7.0",
53
- "@friggframework/prettier-config": "2.0.0--canary.744.9a69fb7.0",
54
- "@friggframework/test": "2.0.0--canary.744.9a69fb7.0",
52
+ "@friggframework/eslint-config": "2.0.0--canary.744.7e3ee98.0",
53
+ "@friggframework/prettier-config": "2.0.0--canary.744.7e3ee98.0",
54
+ "@friggframework/test": "2.0.0--canary.744.7e3ee98.0",
55
55
  "@prisma/client": "^6.19.3",
56
56
  "@types/lodash": "4.17.15",
57
57
  "@typescript-eslint/eslint-plugin": "^8.0.0",
@@ -93,5 +93,5 @@
93
93
  "publishConfig": {
94
94
  "access": "public"
95
95
  },
96
- "gitHead": "9a69fb7c1880d0a1d7575e2e18a9fcf0fc76f37c"
96
+ "gitHead": "7e3ee98f0418c7247a4c166826c0b561eef27741"
97
97
  }