@peopl-health/nexus 2.0.2 → 2.0.3
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.
|
@@ -350,7 +350,7 @@ const replyAssistant = async function (code, message_ = null, thread_ = null, ru
|
|
|
350
350
|
try {
|
|
351
351
|
let thread = thread_ || await getThread(code);
|
|
352
352
|
console.log('THREAD STOPPED', code, thread?.active);
|
|
353
|
-
if (!thread || !thread.active) return null;
|
|
353
|
+
if (!thread || !thread.active || thread.stopped) return null;
|
|
354
354
|
|
|
355
355
|
const patientReply = await getLastMessages(code);
|
|
356
356
|
if (!patientReply) {
|