@xuda.io/account_module 1.2.1021 → 1.2.1022
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
|
@@ -2459,13 +2459,13 @@ export const create_account_profile = async function (req, job_id, headers) {
|
|
|
2459
2459
|
docType: 'account_profile',
|
|
2460
2460
|
|
|
2461
2461
|
uid,
|
|
2462
|
-
profile_name,
|
|
2462
|
+
profile_name: profile_name || acc_obj.account_info.business_name || acc_obj.account_info.name,
|
|
2463
2463
|
profile_signature,
|
|
2464
2464
|
profile_email,
|
|
2465
2465
|
profile_picture,
|
|
2466
2466
|
};
|
|
2467
2467
|
const save_ret = await db_module.save_couch_doc('xuda_accounts', doc);
|
|
2468
|
-
acc_obj.active_profile_id = save_ret.data.id;
|
|
2468
|
+
// acc_obj.active_profile_id = save_ret.data.id;
|
|
2469
2469
|
|
|
2470
2470
|
return { code: 55, data: save_ret };
|
|
2471
2471
|
} catch (err) {
|