@xuda.io/ai_module 1.1.4773 → 1.1.4775
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.
- package/index.mjs +4 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -6949,6 +6949,8 @@ export const get_profile_picture = async function (uid, account_type = 'business
|
|
|
6949
6949
|
const uniqueId = Date.now() + '_' + Math.random().toString(36).substring(7);
|
|
6950
6950
|
const tempOutputPath = path.join(tempDir, `output_${uniqueId}.png`);
|
|
6951
6951
|
|
|
6952
|
+
const { email } = metadata;
|
|
6953
|
+
|
|
6952
6954
|
let prompt,
|
|
6953
6955
|
url,
|
|
6954
6956
|
factual_prompt,
|
|
@@ -7033,6 +7035,8 @@ export const get_profile_picture = async function (uid, account_type = 'business
|
|
|
7033
7035
|
|
|
7034
7036
|
// debugger;
|
|
7035
7037
|
try {
|
|
7038
|
+
url = await getUserPhotoByEmail(email);
|
|
7039
|
+
profile_picture_source = 'google';
|
|
7036
7040
|
// first attempt
|
|
7037
7041
|
if (account_type === 'business') {
|
|
7038
7042
|
url = await get_url();
|