@xuda.io/ai_module 1.1.4332 → 1.1.4334

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 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -6724,7 +6724,7 @@ export const is_business_contact = async function (uid, email, name, subject, bo
6724
6724
  } catch (error) {}
6725
6725
  };
6726
6726
 
6727
- const get_profile_image = async function (uid, account_type = 'personal', name, facts = {}, account_profile_info) {
6727
+ const get_profile_image = async function (uid, account_type = 'business', name, facts = {}, account_profile_info) {
6728
6728
  function normalizeFilename(name) {
6729
6729
  return name
6730
6730
  .toLowerCase() // lowercase
@@ -6783,6 +6783,8 @@ const get_profile_image = async function (uid, account_type = 'personal', name,
6783
6783
  url = await get_url();
6784
6784
  file = await return_image_blob_from_downloaded_image(url);
6785
6785
  } catch (err) {
6786
+ // create factual image
6787
+
6786
6788
  return console.error(err);
6787
6789
  }
6788
6790
  }
@@ -6821,7 +6823,8 @@ const get_profile_image = async function (uid, account_type = 'personal', name,
6821
6823
 
6822
6824
  return drive_ret;
6823
6825
  } catch (err) {
6824
- return console.error(err);
6826
+ console.error(err);
6827
+ return '';
6825
6828
  }
6826
6829
  };
6827
6830
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4332",
3
+ "version": "1.1.4334",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",