@xuda.io/ai_module 1.1.4153 → 1.1.4154
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 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -5511,6 +5511,7 @@ const create_and_upload_image_to_drive = async function (drive_type, file_path,
|
|
|
5511
5511
|
export const create_account_profile_avatar = async function (req, job_id, headers) {
|
|
5512
5512
|
const { uid } = req;
|
|
5513
5513
|
try {
|
|
5514
|
+
req.account_profile_info = await account_module.get_active_account_profile_info(uid);
|
|
5514
5515
|
req.is_profile_avatar = true;
|
|
5515
5516
|
req.account_obj = await db_module.get_couch_doc_native('xuda_accounts', uid);
|
|
5516
5517
|
|
|
@@ -5855,7 +5856,7 @@ export const create_profile_avatar = async function (req, job_id, headers) {
|
|
|
5855
5856
|
};
|
|
5856
5857
|
|
|
5857
5858
|
export const conversation_actions = async function (req, job_id, headers) {
|
|
5858
|
-
const { conversation_id, item_id, action, uid } = req;
|
|
5859
|
+
const { conversation_id, item_id, action, uid, account_profile_info } = req;
|
|
5859
5860
|
try {
|
|
5860
5861
|
if (!conversation_id || conversation_id === 'undefined') {
|
|
5861
5862
|
throw new Error('conversation_id is missing or invalid:' + conversation_id);
|
|
@@ -5973,7 +5974,7 @@ export const modify_profile_avatar = async function (req, job_id, headers) {
|
|
|
5973
5974
|
}
|
|
5974
5975
|
|
|
5975
5976
|
let account_obj = await db_module.get_couch_doc_native('xuda_accounts', uid);
|
|
5976
|
-
const ret = await create_profile_avatar({ prompt, url: account_obj.account_info?.profile_avatar, uid, account_obj }, job_id, headers);
|
|
5977
|
+
const ret = await create_profile_avatar({ prompt, url: account_obj.account_info?.profile_avatar, uid, account_obj, account_profile_info }, job_id, headers);
|
|
5977
5978
|
return ret;
|
|
5978
5979
|
} catch (err) {
|
|
5979
5980
|
return { code: -111, data: err.message };
|