@xuda.io/ai_module 1.1.3681 → 1.1.3682
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 +4 -3
- 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
|
|
1872
|
+
let reference_doc;
|
|
1873
1873
|
|
|
1874
1874
|
if (doc.shared_from_uid) {
|
|
1875
|
-
|
|
1876
|
-
doc =
|
|
1875
|
+
reference_doc = _.cloneDeep(doc);
|
|
1876
|
+
doc = reference_doc;
|
|
1877
|
+
doc.reference_doc = reference_doc;
|
|
1877
1878
|
}
|
|
1878
1879
|
|
|
1879
1880
|
doc.notifications = 0;
|