@xuda.io/account_module 1.2.309 → 1.2.311
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 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -121,7 +121,7 @@ export const update_account_info = async function (req, job_id, headers) {
|
|
|
121
121
|
}
|
|
122
122
|
const ai_module = await import(`${module_path}/ai_module/index.mjs`);
|
|
123
123
|
if (account_obj.account_info?.profile_picture) {
|
|
124
|
-
ai_module.convert_profile_image_to_avatar({ url: account_obj.account_info?.profile_picture, uid }, job_id, headers);
|
|
124
|
+
ai_module.convert_profile_image_to_avatar({ url: account_obj.account_info?.profile_picture, uid, account_obj }, job_id, headers);
|
|
125
125
|
} else {
|
|
126
126
|
// const ai_module = await import(`${module_path}/ai_module/index.mjs`);
|
|
127
127
|
const profile_avatar_ret = ai_module.update_thumbnail('account', account_obj, account_obj.account_project_id, uid, job_id, headers, 'xuda_accounts');
|
|
@@ -1160,7 +1160,7 @@ export const get_contacts = async function (req) {
|
|
|
1160
1160
|
if (bookmark !== 'nil') {
|
|
1161
1161
|
opt.bookmark = bookmark;
|
|
1162
1162
|
}
|
|
1163
|
-
|
|
1163
|
+
|
|
1164
1164
|
const contacts_ret = await db_module.find_couch_query('xuda_contacts', opt);
|
|
1165
1165
|
let requests_from_ret = { docs: [] };
|
|
1166
1166
|
let requests_to_ret = { docs: [] };
|