@sphereon/ssi-sdk.data-store 0.36.1-feature.integration.fides.88 → 0.36.1-fix.110

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@sphereon/ssi-sdk.data-store",
3
- "version": "0.36.1-feature.integration.fides.88+5eba8a30",
3
+ "version": "0.36.1-fix.110+f9c60269",
4
4
  "source": "src/index.ts",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -28,12 +28,12 @@
28
28
  "dependencies": {
29
29
  "@sphereon/kmp-mdoc-core": "0.2.0-SNAPSHOT.26",
30
30
  "@sphereon/pex": "5.0.0-unstable.28",
31
- "@sphereon/ssi-sdk-ext.did-utils": "0.36.1-feature.integration.fides.88+5eba8a30",
32
- "@sphereon/ssi-sdk-ext.identifier-resolution": "0.36.1-feature.integration.fides.88+5eba8a30",
33
- "@sphereon/ssi-sdk.agent-config": "0.36.1-feature.integration.fides.88+5eba8a30",
34
- "@sphereon/ssi-sdk.core": "0.36.1-feature.integration.fides.88+5eba8a30",
35
- "@sphereon/ssi-sdk.data-store-types": "0.36.1-feature.integration.fides.88+5eba8a30",
36
- "@sphereon/ssi-types": "0.36.1-feature.integration.fides.88+5eba8a30",
31
+ "@sphereon/ssi-sdk-ext.did-utils": "0.36.1-fix.110+f9c60269",
32
+ "@sphereon/ssi-sdk-ext.identifier-resolution": "0.36.1-fix.110+f9c60269",
33
+ "@sphereon/ssi-sdk.agent-config": "0.36.1-fix.110+f9c60269",
34
+ "@sphereon/ssi-sdk.core": "0.36.1-fix.110+f9c60269",
35
+ "@sphereon/ssi-sdk.data-store-types": "0.36.1-fix.110+f9c60269",
36
+ "@sphereon/ssi-types": "0.36.1-fix.110+f9c60269",
37
37
  "@veramo/core": "4.2.0",
38
38
  "@veramo/utils": "4.2.0",
39
39
  "blakejs": "^1.2.1",
@@ -66,5 +66,5 @@
66
66
  "PostgreSQL",
67
67
  "Contact Store"
68
68
  ],
69
- "gitHead": "5eba8a30455af768df2d4129f6934bf5c1246715"
69
+ "gitHead": "f9c60269e8060a6bb360a5080747a652ed3e54f1"
70
70
  }
@@ -109,9 +109,19 @@ export class ContactStore extends AbstractContactStore {
109
109
  const initialResult = await partyRepository.find({ select: ['id'], where: filterConditions })
110
110
 
111
111
  // Fetch the complete entities based on the initial result IDs
112
- const result = await partyRepository.find({ where: { id: In(initialResult.map((party) => party.id)) } })
112
+ const result = await partyRepository.find({
113
+ where: { id: In(initialResult.map((party) => party.id)) },
114
+ relations: ['contact'], // Explicit load prevents eager loading issues
115
+ })
113
116
  debug(`getParties() resulted in ${result.length} parties`)
114
- return result.map(partyFrom)
117
+ return result
118
+ .filter((party) => {
119
+ if (!party.contact) {
120
+ console.warn(`party ${party.id} does not have an associated contact`)
121
+ }
122
+ return true
123
+ })
124
+ .map(partyFrom)
115
125
  }
116
126
 
117
127
  addParty = async (args: AddPartyArgs): Promise<Party> => {