@sphereon/ssi-sdk.data-store 0.36.1-feature.integration.fides.82 → 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/dist/index.cjs +10 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -2
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
- package/src/contact/ContactStore.ts +12 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sphereon/ssi-sdk.data-store",
|
|
3
|
-
"version": "0.36.1-
|
|
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-
|
|
32
|
-
"@sphereon/ssi-sdk-ext.identifier-resolution": "0.36.1-
|
|
33
|
-
"@sphereon/ssi-sdk.agent-config": "0.36.1-
|
|
34
|
-
"@sphereon/ssi-sdk.core": "0.36.1-
|
|
35
|
-
"@sphereon/ssi-sdk.data-store-types": "0.36.1-
|
|
36
|
-
"@sphereon/ssi-types": "0.36.1-
|
|
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": "
|
|
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({
|
|
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
|
|
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> => {
|