@xuda.io/ai_module 1.1.4788 → 1.1.4790

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 +3 -3
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -6399,7 +6399,7 @@ export const modify_profile_avatar = async function (req, job_id, headers) {
6399
6399
  metadata = account_info;
6400
6400
  }
6401
6401
 
6402
- metadata.is_user = true;
6402
+ metadata.is_user = true; // create building with sign
6403
6403
  return await get_profile_avatar(url, uid, prompt, account_profile_info, account_type, docType, _id, metadata, account_info, name, account_info.email, job_id, headers);
6404
6404
  } catch (err) {
6405
6405
  return { code: -111, data: err.message };
@@ -6961,7 +6961,7 @@ export const get_profile_picture = async function (uid, account_type = 'business
6961
6961
  image_blob_ret,
6962
6962
  file,
6963
6963
  profile_picture_source,
6964
- drive_ret = {},
6964
+ drive_ret = { code: 1, data: {} },
6965
6965
  resize = {};
6966
6966
 
6967
6967
  switch (account_type) {
@@ -7042,7 +7042,7 @@ export const get_profile_picture = async function (uid, account_type = 'business
7042
7042
  try {
7043
7043
  image_blob_ret = await get_image_blob_from_downloaded_image(url);
7044
7044
  profile_picture_source = 'google';
7045
- drive_ret = { file_url: url };
7045
+ drive_ret.data = { file_url: url };
7046
7046
  } catch (err) {
7047
7047
  if (!err.message.includes('Failed to fetch image URL')) {
7048
7048
  console.error(err);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4788",
3
+ "version": "1.1.4790",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",