@xuda.io/ai_module 1.1.4086 → 1.1.4088

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 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1954,6 +1954,9 @@ export const archive_ai_chat = async function (req) {
1954
1954
 
1955
1955
  const app_id = await account_module.get_account_default_project_id(uid);
1956
1956
  try {
1957
+ const team_module = await import(`${module_path}/team_module/index.mjs`);
1958
+ await team_module.validate_share_exist(uid, 'chat', conversation_id);
1959
+
1957
1960
  let conversation_doc = await db_module.get_app_couch_doc_native(app_id, conversation_id);
1958
1961
  conversation_doc.stat = 5;
1959
1962
  conversation_doc.ts = Date.now();
@@ -5622,7 +5625,7 @@ export const create_profile_avatar = async function (req, job_id, headers) {
5622
5625
  const res = JSON5.parse(ret.data);
5623
5626
  return res?.is_real_person_in_picture;
5624
5627
  };
5625
- debugger;
5628
+
5626
5629
  // const drive_module = await import(`${module_path}/drive_module/index.mjs`);
5627
5630
  const { url, uid, account_obj, prompt, is_profile_avatar } = req;
5628
5631
  if (!is_profile_avatar) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4086",
3
+ "version": "1.1.4088",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",