@xuda.io/account_module 1.2.1295 → 1.2.1296
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
|
@@ -2884,7 +2884,7 @@ export const unarchive_account_profile = async function (req) {
|
|
|
2884
2884
|
export const create_account_profile = async function (req, job_id, headers) {
|
|
2885
2885
|
const { uid, profile_name, profile_signature, profile_email, profile_picture, profile_avatar, profile_picture_obj, profile_avatar_obj, main } = req;
|
|
2886
2886
|
try {
|
|
2887
|
-
|
|
2887
|
+
const app_id = await get_account_default_project_id(uid);
|
|
2888
2888
|
const { data: acc_obj } = await db_module.get_couch_doc('xuda_accounts', uid);
|
|
2889
2889
|
|
|
2890
2890
|
const d = Date.now();
|
|
@@ -2905,7 +2905,7 @@ export const create_account_profile = async function (req, job_id, headers) {
|
|
|
2905
2905
|
profile_avatar_obj,
|
|
2906
2906
|
main,
|
|
2907
2907
|
};
|
|
2908
|
-
const save_ret = await db_module.
|
|
2908
|
+
const save_ret = await db_module.save_app_couch_doc(app_id, doc);
|
|
2909
2909
|
// acc_obj.active_profile_id = save_ret.data.id;
|
|
2910
2910
|
|
|
2911
2911
|
// return { code: 55, data: save_ret };
|