@xuda.io/ai_module 1.1.4131 → 1.1.4133
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/index.mjs +1 -4
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1966,7 +1966,7 @@ export const archive_ai_chat = async function (req) {
|
|
|
1966
1966
|
|
|
1967
1967
|
let conversation_doc = await db_module.get_app_couch_doc_native(app_id, conversation_id);
|
|
1968
1968
|
|
|
1969
|
-
if (conversation_doc.uid !== uid) throw new Error('
|
|
1969
|
+
if (conversation_doc.uid !== uid) throw new Error('Operation not allowed');
|
|
1970
1970
|
|
|
1971
1971
|
conversation_doc.stat = 5;
|
|
1972
1972
|
conversation_doc.ts = Date.now();
|
|
@@ -4220,9 +4220,6 @@ export const create_conversation = async function (req, job_id, headers) {
|
|
|
4220
4220
|
const save_ret = await db_module.save_app_couch_doc(app_id, { ...conversation_doc, ...{ uid: receiver_contact_doc.contact_uid, reference_id: sender_contact_id } });
|
|
4221
4221
|
contact_uid_chat_conversation = receiver_contact_doc.contact_uid;
|
|
4222
4222
|
}
|
|
4223
|
-
|
|
4224
|
-
if (conversation_type === 'note') {
|
|
4225
|
-
}
|
|
4226
4223
|
}
|
|
4227
4224
|
|
|
4228
4225
|
setTimeout(async () => {
|