@xuda.io/ai_module 1.1.3684 → 1.1.3686

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 +11 -0
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1780,6 +1780,12 @@ export const get_ai_chats = async function (req, job_id, headers) {
1780
1780
  break;
1781
1781
  }
1782
1782
 
1783
+ case 'mine': {
1784
+ opt.selector.uid = uid;
1785
+
1786
+ break;
1787
+ }
1788
+
1783
1789
  default:
1784
1790
  // opt.selector.team_req_stat = { $eq: 3 };
1785
1791
  break;
@@ -1933,6 +1939,11 @@ export const delete_ai_chat = async function (req) {
1933
1939
  if (conversation_doc?.chat_image?.[0]) {
1934
1940
  drive_module.delete_drive_files({ uid, drive_type: 'user', files_arr: [{ type: 'file', file_path: path.join(conversation_doc.chat_image[0].file_path, conversation_doc.chat_image[0].filename) }] });
1935
1941
  }
1942
+
1943
+ if (conversation_doc.shared_from_uid) {
1944
+ const team_req = await db_module.get_couch_doc_native('xuda_team', conversation_doc.team_req_id);
1945
+ }
1946
+
1936
1947
  return save_ret;
1937
1948
  } catch (err) {
1938
1949
  return { code: -3, data: err.message };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.3684",
3
+ "version": "1.1.3686",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",