@xuda.io/ai_module 1.1.4391 → 1.1.4393
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 +3 -4
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -5661,16 +5661,15 @@ const create_and_upload_image_to_drive = async function (drive_type, file_path,
|
|
|
5661
5661
|
};
|
|
5662
5662
|
|
|
5663
5663
|
export const create_avatar = async function (req, job_id, headers) {
|
|
5664
|
-
const { docType, uid, url, _id, name } = req;
|
|
5664
|
+
const { docType, uid, url, _id, name, account_type } = req;
|
|
5665
5665
|
try {
|
|
5666
5666
|
const account_profile_info = await get_active_account_profile_info(uid);
|
|
5667
|
-
|
|
5668
|
-
// req.is_profile_avatar = true;
|
|
5667
|
+
|
|
5669
5668
|
const account_obj = await db_module.get_couch_doc_native('xuda_accounts', uid);
|
|
5670
5669
|
const account_info = account_obj.account_info;
|
|
5671
5670
|
let metadata = account_info;
|
|
5672
5671
|
|
|
5673
|
-
return await get_profile_avatar(url, uid, null, account_profile_info,
|
|
5672
|
+
return await get_profile_avatar(url, uid, null, account_profile_info, account_type, docType, _id, metadata, account_info, name, account_info.email, job_id, headers);
|
|
5674
5673
|
} catch (err) {
|
|
5675
5674
|
return {
|
|
5676
5675
|
code: -25,
|