@xuda.io/account_module 1.2.1345 → 1.2.1347
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
|
@@ -45,7 +45,7 @@ const _utils = await import(path.join(process.env.XUDA_HOME, 'common', 'xuda-cpi
|
|
|
45
45
|
// Module Paths
|
|
46
46
|
const module_path = path.join(process.env.XUDA_HOME, 'cpi') + (!_conf.is_debug ? '/node_modules/@xuda.io' : '');
|
|
47
47
|
const db_module = await import(`${module_path}/db_module/index.mjs`);
|
|
48
|
-
const jobs_module = await import(`${module_path}/jobs_module/index.mjs`);
|
|
48
|
+
// const jobs_module = await import(`${module_path}/jobs_module/index.mjs`);
|
|
49
49
|
|
|
50
50
|
export const update_account_info = async function (req, job_id, headers) {
|
|
51
51
|
const marketplace_module = await import(`${module_path}/marketplace_module/index.mjs`);
|
|
@@ -1397,6 +1397,7 @@ export const get_pending_contact_in = async function (uid, _id) {
|
|
|
1397
1397
|
if (account_info_ret.code < 0) {
|
|
1398
1398
|
continue; // throw new Error(`account ${contact_uid} not found`);
|
|
1399
1399
|
}
|
|
1400
|
+
doc.account_type = account_info_ret.data.account_type;
|
|
1400
1401
|
doc.avatar_source = account_info_ret.data.avatar_source;
|
|
1401
1402
|
doc.profile_avatar = account_info_ret.data.profile_avatar;
|
|
1402
1403
|
doc.name = `${account_info_ret.data.first_name} ${account_info_ret.data.last_name}`;
|
|
@@ -2785,7 +2786,7 @@ export const update_entity_account_profiles = async function (req, job_id, heade
|
|
|
2785
2786
|
|
|
2786
2787
|
try {
|
|
2787
2788
|
if (!account_profiles.length) {
|
|
2788
|
-
throw new Error('account_profiles
|
|
2789
|
+
throw new Error('account_profiles cannot be empty');
|
|
2789
2790
|
}
|
|
2790
2791
|
|
|
2791
2792
|
let doc = await db_module.get_app_couch_doc_native(app_id, _id);
|