@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/dist/index.cjs CHANGED
@@ -4806,10 +4806,18 @@ var ContactStore = class extends import_ssi_sdk25.AbstractContactStore {
4806
4806
  const result = await partyRepository.find({
4807
4807
  where: {
4808
4808
  id: (0, import_typeorm35.In)(initialResult.map((party) => party.id))
4809
- }
4809
+ },
4810
+ relations: [
4811
+ "contact"
4812
+ ]
4810
4813
  });
4811
4814
  debug(`getParties() resulted in ${result.length} parties`);
4812
- return result.map(partyFrom);
4815
+ return result.filter((party) => {
4816
+ if (!party.contact) {
4817
+ console.warn(`party ${party.id} does not have an associated contact`);
4818
+ }
4819
+ return true;
4820
+ }).map(partyFrom);
4813
4821
  }, "getParties");
4814
4822
  addParty = /* @__PURE__ */ __name(async (args) => {
4815
4823
  const { identities, contact, partyType } = args;