@xuda.io/ai_module 1.1.4686 → 1.1.4687

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 +1 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1978,7 +1978,7 @@ export const get_ai_chats = async function (req, job_id, headers) {
1978
1978
 
1979
1979
  doc.privilege = doc.uid === uid || doc?.account_profile_info?.uid === uid;
1980
1980
 
1981
- if (reference_id) {
1981
+ if (reference_id && doc.reference_type === 'contact') {
1982
1982
  // only valid for contacts conversation
1983
1983
  doc.background = get_conversation_background(doc);
1984
1984
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4686",
3
+ "version": "1.1.4687",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",