@xuda.io/ai_module 1.1.4072 → 1.1.4074

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 -4
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -5126,7 +5126,7 @@ setTimeout(async () => {
5126
5126
 
5127
5127
  // await init_studio_units();
5128
5128
  let ret;
5129
- ret = await is_spam_email(uid, 'dsgr8-2994400420@gigs.craigslist.org', 'To: You, From: Us - 70% Off Stickers & Labels Today Only');
5129
+ // ret = await is_spam_email(uid, 'dsgr8-2994400420@gigs.craigslist.org', 'To: You, From: Us - 70% Off Stickers & Labels Today Only');
5130
5130
  // ret = await delete_depended_chats(uid);
5131
5131
  // ret = await run_plugin(app_id, uid, '@xuda.io/xuda-library-plugin-studio-ai-app-builder', 'table_builder', { name: 'test2', prompt: 'build items table', save: true });
5132
5132
  // ret = await run_plugin(app_id, uid, '@xuda.io/xuda-library-plugin-studio-ai-app-builder', 'folder_builder', { name: 'test', prompt: 'build boaz folder', save: true, parentId: 'programs' });
@@ -5609,9 +5609,10 @@ export const convert_profile_image_to_avatar = async function (req, job_id, head
5609
5609
  };
5610
5610
 
5611
5611
  // const drive_module = await import(`${module_path}/drive_module/index.mjs`);
5612
- const { url, uid, account_obj, prompt } = req;
5613
-
5614
- await update_profile_avatar_status(account_obj._id, 2);
5612
+ const { url, uid, account_obj, prompt, profile_id } = req;
5613
+ if (!profile_id) {
5614
+ await update_profile_avatar_status(account_obj._id, 2);
5615
+ }
5615
5616
  try {
5616
5617
  if (!url) {
5617
5618
  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.4072",
3
+ "version": "1.1.4074",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",