@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/dist/index.js
CHANGED
|
@@ -4654,10 +4654,18 @@ var ContactStore = class extends AbstractContactStore {
|
|
|
4654
4654
|
const result = await partyRepository.find({
|
|
4655
4655
|
where: {
|
|
4656
4656
|
id: In(initialResult.map((party) => party.id))
|
|
4657
|
-
}
|
|
4657
|
+
},
|
|
4658
|
+
relations: [
|
|
4659
|
+
"contact"
|
|
4660
|
+
]
|
|
4658
4661
|
});
|
|
4659
4662
|
debug(`getParties() resulted in ${result.length} parties`);
|
|
4660
|
-
return result.
|
|
4663
|
+
return result.filter((party) => {
|
|
4664
|
+
if (!party.contact) {
|
|
4665
|
+
console.warn(`party ${party.id} does not have an associated contact`);
|
|
4666
|
+
}
|
|
4667
|
+
return true;
|
|
4668
|
+
}).map(partyFrom);
|
|
4661
4669
|
}, "getParties");
|
|
4662
4670
|
addParty = /* @__PURE__ */ __name(async (args) => {
|
|
4663
4671
|
const { identities, contact, partyType } = args;
|