@xuda.io/ai_module 1.1.3681 → 1.1.3683

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.
Files changed (2) hide show
  1. package/index.mjs +4 -3
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1869,11 +1869,12 @@ export const get_ai_chats = async function (req, job_id, headers) {
1869
1869
  let docs = [];
1870
1870
 
1871
1871
  for (let doc of ai_chats.docs || []) {
1872
- let source_doc;
1872
+ let reference_doc;
1873
1873
 
1874
1874
  if (doc.shared_from_uid) {
1875
- source_doc = _.cloneDeep(doc);
1876
- doc = source_doc;
1875
+ reference_doc = _.cloneDeep(doc);
1876
+ doc = await db_module.get_app_couch_doc_native(reference_doc.shared_from_app_id, reference_doc.share_item_id);
1877
+ doc.reference_doc = reference_doc;
1877
1878
  }
1878
1879
 
1879
1880
  doc.notifications = 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.3681",
3
+ "version": "1.1.3683",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",