@xuda.io/ai_module 1.1.3623 → 1.1.3624

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
@@ -5849,7 +5849,7 @@ export const create_ai_agent_image = async function (req, job_id, headers) {
5849
5849
  console.log('Success! Saved →', outputPath);
5850
5850
 
5851
5851
  const ext = 'png';
5852
- const originalname = `avatar_${account_obj?.account_info?.email || account_obj._id}.${ext}`;
5852
+ const originalname = `ai_avatar_${ai_agent_id}.${ext}`;
5853
5853
 
5854
5854
  const file_obj = {
5855
5855
  originalname,
@@ -5857,7 +5857,7 @@ export const create_ai_agent_image = async function (req, job_id, headers) {
5857
5857
  mimetype: `image/${ext}`,
5858
5858
  };
5859
5859
 
5860
- const drive_ret = await drive_module.upload_drive_file_studio({ uid, path: '/Progs Thumbnails' }, job_id, headers, file_obj);
5860
+ const drive_ret = await drive_module.upload_drive_file_studio({ uid, app_id, path: '/Progs Thumbnails' }, job_id, headers, file_obj);
5861
5861
 
5862
5862
  if (drive_ret.code > 0) {
5863
5863
  let db_doc = await db_module.get_couch_doc_native('xuda_accounts', account_obj._id);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.3623",
3
+ "version": "1.1.3624",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",