@xuda.io/account_module 1.2.1082 → 1.2.1083
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 +1 -17
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2491,24 +2491,8 @@ export const update_account_profile = async function (req, job_id, headers) {
|
|
|
2491
2491
|
}
|
|
2492
2492
|
|
|
2493
2493
|
acc_obj.ts = Date.now();
|
|
2494
|
-
const doc = {
|
|
2495
|
-
_id: await _common.xuda_get_uuid('contact_profile'),
|
|
2496
|
-
stat: 3,
|
|
2497
|
-
date_created_ts: d,
|
|
2498
|
-
ts: d,
|
|
2499
|
-
docType: 'account_profile',
|
|
2500
2494
|
|
|
2501
|
-
|
|
2502
|
-
profile_name, //: profile_name || acc_obj.account_info.business_name || acc_obj.account_info.name,
|
|
2503
|
-
profile_signature,
|
|
2504
|
-
profile_email,
|
|
2505
|
-
profile_picture,
|
|
2506
|
-
profile_avatar,
|
|
2507
|
-
profile_picture_obj,
|
|
2508
|
-
profile_avatar_obj,
|
|
2509
|
-
};
|
|
2510
|
-
const save_ret = await db_module.save_couch_doc('xuda_accounts', doc);
|
|
2511
|
-
// acc_obj.active_profile_id = save_ret.data.id;
|
|
2495
|
+
const save_ret = await db_module.save_couch_doc('xuda_accounts', acc_obj);
|
|
2512
2496
|
|
|
2513
2497
|
return { code: 55, data: save_ret };
|
|
2514
2498
|
} catch (err) {
|