@xuda.io/ai_module 1.1.4785 → 1.1.4786
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 +2 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -6950,7 +6950,7 @@ export const get_profile_picture = async function (uid, account_type = 'business
|
|
|
6950
6950
|
const uniqueId = Date.now() + '_' + Math.random().toString(36).substring(7);
|
|
6951
6951
|
const tempOutputPath = path.join(tempDir, `output_${uniqueId}.png`);
|
|
6952
6952
|
debugger;
|
|
6953
|
-
const { email } = metadata;
|
|
6953
|
+
const { email, create_avatar } = metadata;
|
|
6954
6954
|
|
|
6955
6955
|
let prompt,
|
|
6956
6956
|
url,
|
|
@@ -7052,7 +7052,7 @@ export const get_profile_picture = async function (uid, account_type = 'business
|
|
|
7052
7052
|
}
|
|
7053
7053
|
}
|
|
7054
7054
|
|
|
7055
|
-
if (!url) {
|
|
7055
|
+
if (!url && create_avatar) {
|
|
7056
7056
|
// first attempt
|
|
7057
7057
|
if (account_type === 'business') {
|
|
7058
7058
|
url = await get_url();
|