med-scribe-alliance-ts-sdk 2.0.3 → 2.0.4
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.mjs +4 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1825,7 +1825,10 @@ var re = class {
|
|
|
1825
1825
|
return this.wrapResult(() => this.sessionManager.processTemplate(n, e, t));
|
|
1826
1826
|
}
|
|
1827
1827
|
async cancelSession(e) {
|
|
1828
|
-
|
|
1828
|
+
if (this.recordingManager.isRecording()) try {
|
|
1829
|
+
await this.recordingManager.stop();
|
|
1830
|
+
} catch {}
|
|
1831
|
+
return this.recordingManager.reset(), this.sessionManager.clearCurrentSession(), this.updateSession({
|
|
1829
1832
|
user_status: "cancelled",
|
|
1830
1833
|
processing_status: "cancelled"
|
|
1831
1834
|
}, e);
|