oro-sdk 3.1.2-dev1 → 3.1.2-dev2

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": "3.1.2-dev1",
2
+ "version": "3.1.2-dev2",
3
3
  "main": "dist/index.js",
4
4
  "typings": "dist/index.d.ts",
5
5
  "files": [
@@ -146,11 +146,6 @@ export async function registerPatient(
146
146
  errorsThrown.push(err)
147
147
  })
148
148
 
149
- await searchIndexConsultation(consult.uuid, oroClient).catch((err) => {
150
- console.error('[SDK: registration] personal information not found or another error occured during search indexing', err)
151
- errorsThrown.push(err)
152
- })
153
-
154
149
  if (masterKey && !identity?.recoveryMasterKey) {
155
150
  // generate and store recovery payload and updates the identity
156
151
  identity = await oroClient.updateMasterKey(patientUuid, masterKey, lockboxUuid).catch((err) => {
@@ -192,6 +187,11 @@ export async function registerPatient(
192
187
  statusMedical: MedicalStatus.New,
193
188
  })
194
189
 
190
+ await searchIndexConsultation(consult.uuid, oroClient).catch((err) => {
191
+ console.error('[SDK: registration] personal information not found or another error occured during search indexing', err)
192
+ errorsThrown.push(err)
193
+ })
194
+
195
195
  // if we got through the complete flow, the registration succeeded
196
196
  break
197
197
  } catch (err) {