@xuda.io/ai_module 1.1.4160 → 1.1.4162

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 +2 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2068,10 +2068,11 @@ const create_image = async function (uid, prompt, model = 'gpt-image-1-mini', si
2068
2068
 
2069
2069
  const get_studio_doc = async function (req) {
2070
2070
  let { uid, _id } = req;
2071
+ const account_profile_info = await account_module.get_active_account_profile_info(uid);
2071
2072
 
2072
2073
  const app_id = await account_module.get_account_default_project_id(uid);
2073
2074
  try {
2074
- let data = await db_module.get_app_couch_doc_native(app_id, _id);
2075
+ let data = await db_module.get_app_couch_doc_native(account_profile_info.app_id, _id);
2075
2076
 
2076
2077
  if (data?.studio_meta?.createdByUid !== uid) delete data.agentConfig; //throw new Error('doctype not supported');
2077
2078
  return { code: 7, data };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4160",
3
+ "version": "1.1.4162",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",