@xuda.io/ai_module 1.1.3618 → 1.1.3619

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 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -5758,11 +5758,11 @@ export const create_ai_agent_image = async function (req, job_id, headers) {
5758
5758
  return { is_transparent, image_blob: new Blob([buffer], { type: 'image/png' }) };
5759
5759
  }
5760
5760
 
5761
- const { url, app_id, uid, account_obj, ai_agent_id, prompt } = req;
5761
+ const { app_id, uid, account_obj, ai_agent_id, prompt } = req;
5762
5762
 
5763
5763
  const ai_agent_doc = await db_module.get_app_couch_doc_native(app_id, ai_agent_id);
5764
5764
  const account_doc = await db_module.get_couch_doc_native('xuda_accounts', uid);
5765
-
5765
+ let url = account_doc.account_info.profile_avatar;
5766
5766
  try {
5767
5767
  if (!url) {
5768
5768
  throw new Error('No URL provided in request');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.3618",
3
+ "version": "1.1.3619",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",