@xuda.io/ai_module 1.1.4702 → 1.1.4704
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 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -5956,7 +5956,7 @@ export const create_avatar = async function (req, job_id, headers) {
|
|
|
5956
5956
|
metadata = account_info;
|
|
5957
5957
|
}
|
|
5958
5958
|
|
|
5959
|
-
return await get_profile_avatar(url, uid, null, account_profile_info, account_type, docType, _id, metadata,
|
|
5959
|
+
return await get_profile_avatar(url, uid, null, account_profile_info, account_type, docType, _id, metadata, undefined, name, account_info.email, job_id, headers);
|
|
5960
5960
|
} catch (err) {
|
|
5961
5961
|
return {
|
|
5962
5962
|
code: -25,
|
|
@@ -6018,8 +6018,7 @@ export const get_profile_avatar = async function (profile_picture, uid, prompt,
|
|
|
6018
6018
|
imageBase64 = Buffer.from(await image_blob_ret.image_blob.arrayBuffer()).toString('base64');
|
|
6019
6019
|
if (account_type === 'business') {
|
|
6020
6020
|
// create avatar from logo - BUSINESS
|
|
6021
|
-
const { bio, country, mainCategory, subCategory } = metadata
|
|
6022
|
-
const { is_real_person } = metadata.account_type_info;
|
|
6021
|
+
const { bio, country, mainCategory, subCategory, is_real_person } = metadata;
|
|
6023
6022
|
|
|
6024
6023
|
// const obj = {
|
|
6025
6024
|
// free: {
|