@xuda.io/account_module 1.2.775 → 1.2.777

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 +2 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2125,6 +2125,8 @@ export const get_user_card = async function (uid, uid_query) {
2125
2125
  export const onboarding_completed = async function (req, job_id, headers) {
2126
2126
  const { uid } = req;
2127
2127
  try {
2128
+ await update_account_info(req, job_id, headers);
2129
+
2128
2130
  let account_doc = await db_module.get_couch_doc_native('xuda_accounts', uid);
2129
2131
 
2130
2132
  if (!account_doc.account_info?.profile_picture) {
@@ -2135,8 +2137,6 @@ export const onboarding_completed = async function (req, job_id, headers) {
2135
2137
  throw new Error(`missing profile_avatar`);
2136
2138
  }
2137
2139
 
2138
- await update_account_info(req, job_id, headers);
2139
-
2140
2140
  if (!account_doc.account_project_id) {
2141
2141
  const app_module = await import(`${module_path}/app_module/index.mjs`);
2142
2142
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.775",
3
+ "version": "1.2.777",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {