oro-sdk 2.19.1 → 2.19.2

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,5 +1,5 @@
1
1
  {
2
- "version": "2.19.1",
2
+ "version": "2.19.2",
3
3
  "main": "dist/index.js",
4
4
  "typings": "dist/index.d.ts",
5
5
  "files": [
package/src/client.ts CHANGED
@@ -784,7 +784,10 @@ export class OroClient {
784
784
  // retrieves the consult lockbox from the vault directly if it exists
785
785
  // Note: will work only if the filter being applied is exclusively a consult id
786
786
  const grantsByConsultLockbox = (
787
- await this.vaultClient.vaultIndexGet([IndexKey.ConsultationLockbox], [filter?.consultationId!])
787
+ await this.vaultClient.vaultIndexGet(
788
+ [IndexKey.ConsultationLockbox],
789
+ filter ? [filter.consultationId] : undefined
790
+ )
788
791
  )[IndexKey.ConsultationLockbox]
789
792
  const decryptedConsults = decryptConsultLockboxGrants(grantsByConsultLockbox ?? [], this.rsa)
790
793
  if (decryptedConsults.length > 0) {