@xuda.io/account_module 1.2.1050 → 1.2.1052
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 -4
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -193,7 +193,7 @@ export const update_account_info = async function (req, job_id, headers) {
|
|
|
193
193
|
const ai_module = await import(`${module_path}/ai_module/index.mjs`);
|
|
194
194
|
if (account_obj.account_info?.profile_picture) {
|
|
195
195
|
if (!account_obj.account_info?.profile_avatar) {
|
|
196
|
-
ai_module.
|
|
196
|
+
ai_module.create_profile_avatar({ url: account_obj.account_info?.profile_picture, uid, account_obj }, job_id, headers);
|
|
197
197
|
}
|
|
198
198
|
} else {
|
|
199
199
|
ai_module.update_thumbnail('account', account_obj, account_obj.account_project_id, uid, job_id, headers, 'xuda_accounts');
|
|
@@ -1952,7 +1952,7 @@ export const add_contact = async function (req, job_id, headers) {
|
|
|
1952
1952
|
const ai_module = await import(`${module_path}/ai_module/index.mjs`);
|
|
1953
1953
|
if (account_info_ret?.data?.profile_avatar) {
|
|
1954
1954
|
// account_info_ret.data.profile_avatar_stat = 2;
|
|
1955
|
-
ai_module.
|
|
1955
|
+
ai_module.create_profile_avatar({ url: account_info_ret.data.profile_picture, uid, account_obj: { _id: contact_uid, account_info: account_info_ret.data } }, job_id, headers);
|
|
1956
1956
|
} else {
|
|
1957
1957
|
if (!doc.profile_avatar) {
|
|
1958
1958
|
// create factual avatar
|
|
@@ -2324,7 +2324,7 @@ export const get_user_card = async function (uid, uid_query) {
|
|
|
2324
2324
|
// try {
|
|
2325
2325
|
// const ai_module = await import(`${module_path}/ai_module/index.mjs`);
|
|
2326
2326
|
|
|
2327
|
-
// ai_module.
|
|
2327
|
+
// ai_module.create_profile_avatar({ url: account_info?.profile_picture, uid, account_obj }, job_id, headers);
|
|
2328
2328
|
|
|
2329
2329
|
// // const account_info = await get_account_name({ uid });
|
|
2330
2330
|
// // let username = 'unknown';
|
|
@@ -2441,7 +2441,7 @@ export const get_account_ai_usage = async function (req, job_id, headers) {
|
|
|
2441
2441
|
};
|
|
2442
2442
|
|
|
2443
2443
|
export const create_account_profile = async function (req, job_id, headers) {
|
|
2444
|
-
const { uid, profile_name, profile_signature, profile_email, profile_picture } = req;
|
|
2444
|
+
const { uid, profile_name, profile_signature, profile_email, profile_picture, profile_avatar } = req;
|
|
2445
2445
|
try {
|
|
2446
2446
|
// const app_id = await get_account_default_project_id(uid);
|
|
2447
2447
|
const { data: acc_obj } = await db_module.get_couch_doc('xuda_accounts', uid);
|