@xuda.io/account_module 1.2.1316 → 1.2.1318
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 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -56,6 +56,8 @@ export const update_account_info = async function (req, job_id, headers) {
|
|
|
56
56
|
|
|
57
57
|
delete data.profile_avatar;
|
|
58
58
|
|
|
59
|
+
const account_profile_info = await get_active_account_profile_info(uid);
|
|
60
|
+
|
|
59
61
|
function validate_input(string, max_length, is_mandatory, is_pass) {
|
|
60
62
|
if (!/^[a-zA-Z0-9,.@ ]*$/.test(string) && !is_pass) {
|
|
61
63
|
// if (!preg_match('^[a-zA-Z0-9,.@ ]*$', string) && !is_pass) {
|
|
@@ -194,7 +196,7 @@ export const update_account_info = async function (req, job_id, headers) {
|
|
|
194
196
|
const ai_module = await import(`${module_path}/ai_module/index.mjs`);
|
|
195
197
|
if (account_obj.account_info?.profile_picture) {
|
|
196
198
|
if (!account_obj.account_info?.profile_avatar) {
|
|
197
|
-
ai_module.create_profile_avatar({ url: account_obj.account_info?.profile_picture, uid, account_obj }, job_id, headers);
|
|
199
|
+
ai_module.create_profile_avatar({ url: account_obj.account_info?.profile_picture, uid, account_obj, account_profile_info }, job_id, headers);
|
|
198
200
|
}
|
|
199
201
|
} else {
|
|
200
202
|
ai_module.update_thumbnail('account', account_obj, account_obj.account_project_id, uid, job_id, headers, 'xuda_accounts');
|