@xuda.io/account_module 1.2.1295 → 1.2.1297

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.
Files changed (2) hide show
  1. package/index.mjs +3 -3
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2884,8 +2884,8 @@ 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
- // const app_id = await get_account_default_project_id(uid);
2888
- const { data: acc_obj } = await db_module.get_couch_doc('xuda_accounts', uid);
2887
+ const app_id = await get_account_default_project_id(uid);
2888
+ // const { data: acc_obj } = await db_module.get_couch_doc('xuda_accounts', uid);
2889
2889
 
2890
2890
  const d = Date.now();
2891
2891
  const doc = {
@@ -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.save_couch_doc('xuda_accounts', doc);
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1295",
3
+ "version": "1.2.1297",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {