@peopl-health/nexus 1.4.8 → 1.5.0
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.
|
@@ -221,7 +221,7 @@ const replyAssistant = async function (code, message_ = null, thread_ = null, ru
|
|
|
221
221
|
console.log('THREAD STOPPED', code, thread?.active);
|
|
222
222
|
if (!thread || !thread.active) return null;
|
|
223
223
|
|
|
224
|
-
const patientReply =
|
|
224
|
+
const patientReply = await getLastMessages(code);
|
|
225
225
|
console.log('UNREAD DATA', patientReply);
|
|
226
226
|
if (!patientReply) {
|
|
227
227
|
console.log('No relevant data found for this assistant.');
|