@xuda.io/ai_module 1.1.3685 → 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 +5 -0
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1939,6 +1939,11 @@ export const delete_ai_chat = async function (req) {
1939
1939
  if (conversation_doc?.chat_image?.[0]) {
1940
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) }] });
1941
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
+
1942
1947
  return save_ret;
1943
1948
  } catch (err) {
1944
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.3685",
3
+ "version": "1.1.3686",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",