@friggframework/core 2.0.0--canary.681.ce2a674.0 → 2.0.0--canary.681.2df9ef0.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.681.ce2a674.0",
4
+ "version": "2.0.0--canary.681.2df9ef0.0",
5
5
  "dependencies": {
6
6
  "@aws-sdk/client-apigatewaymanagementapi": "^3.588.0",
7
7
  "@aws-sdk/client-kms": "^3.588.0",
@@ -48,9 +48,9 @@
48
48
  }
49
49
  },
50
50
  "devDependencies": {
51
- "@friggframework/eslint-config": "2.0.0--canary.681.ce2a674.0",
52
- "@friggframework/prettier-config": "2.0.0--canary.681.ce2a674.0",
53
- "@friggframework/test": "2.0.0--canary.681.ce2a674.0",
51
+ "@friggframework/eslint-config": "2.0.0--canary.681.2df9ef0.0",
52
+ "@friggframework/prettier-config": "2.0.0--canary.681.2df9ef0.0",
53
+ "@friggframework/test": "2.0.0--canary.681.2df9ef0.0",
54
54
  "@prisma/client": "^6.19.3",
55
55
  "@types/lodash": "4.17.15",
56
56
  "@typescript-eslint/eslint-plugin": "^8.0.0",
@@ -90,5 +90,5 @@
90
90
  "publishConfig": {
91
91
  "access": "public"
92
92
  },
93
- "gitHead": "ce2a674fe0f71a495778aa93bdf0ed8619419bad"
93
+ "gitHead": "2df9ef0d1e98841190c6a8136ff77c886ca9e629"
94
94
  }
@@ -3,7 +3,7 @@ const {
3
3
  toObjectId,
4
4
  fromObjectId,
5
5
  findOne,
6
- findMany,
6
+ findManyDrained,
7
7
  updateOne,
8
8
  } = require('../../database/documentdb-utils');
9
9
  const { DUPLICATE_KEY_CODE } = require('../../database/unique-violation');
@@ -66,7 +66,9 @@ class OrganizationMembershipRepositoryDocumentDB extends OrganizationMembershipR
66
66
  }
67
67
 
68
68
  async listMembershipsForOrganization(organizationUserId) {
69
- const docs = await findMany(
69
+ // Drained: findMany returns only the first cursor batch (~101 documents),
70
+ // which would silently drop members of a large organization.
71
+ const docs = await findManyDrained(
70
72
  this.prisma,
71
73
  COLLECTION,
72
74
  { organizationUserId: toObjectId(organizationUserId) },
@@ -4,7 +4,7 @@ const {
4
4
  toObjectId,
5
5
  fromObjectId,
6
6
  findOne,
7
- findMany,
7
+ findManyDrained,
8
8
  insertOne,
9
9
  updateOne,
10
10
  deleteOne,
@@ -72,7 +72,9 @@ class UserRepositoryDocumentDB extends UserRepositoryInterface {
72
72
  }
73
73
 
74
74
  async findIndividualUsersByOrganizationId(organizationUserId) {
75
- const docs = await findMany(this.prisma, 'User', {
75
+ // Drained: findMany returns only the first cursor batch, which would
76
+ // drop people from a large organization.
77
+ const docs = await findManyDrained(this.prisma, 'User', {
76
78
  organizationId: toObjectId(organizationUserId),
77
79
  type: 'INDIVIDUAL',
78
80
  });