oro-sdk 3.1.2-dev1 → 3.1.2-dev2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/oro-sdk.cjs.development.js +22 -22
- package/dist/oro-sdk.cjs.development.js.map +1 -1
- package/dist/oro-sdk.cjs.production.min.js +1 -1
- package/dist/oro-sdk.cjs.production.min.js.map +1 -1
- package/dist/oro-sdk.esm.js +22 -22
- package/dist/oro-sdk.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/helpers/patient-registration.ts +5 -5
package/package.json
CHANGED
@@ -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) {
|