@open-mercato/core 0.6.6-develop.5483.1.a1129165ea → 0.6.6-develop.5503.1.6cdc4dda5f

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.
@@ -207,11 +207,13 @@ async function resolveCustomerSnapshot(em, organizationId, tenantId, customerEnt
207
207
  }
208
208
  async function resolveAddressSnapshot(em, organizationId, tenantId, addressId) {
209
209
  if (!addressId) return null;
210
- const address = await em.findOne(CustomerAddress, {
211
- id: addressId,
212
- organizationId,
213
- tenantId
214
- });
210
+ const address = await findOneWithDecryption(
211
+ em,
212
+ CustomerAddress,
213
+ { id: addressId, organizationId, tenantId },
214
+ void 0,
215
+ { tenantId, organizationId }
216
+ );
215
217
  if (!address) return null;
216
218
  return {
217
219
  id: address.id,