@xuda.io/account_module 1.2.825 → 1.2.827

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 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -150,6 +150,8 @@ export const update_account_info = async function (req, job_id, headers) {
150
150
  return { code: 1300, data: 'no change' };
151
151
  }
152
152
 
153
+ account_obj.account_info.full_name = `${account_obj.account_info.first_name} ${account_obj.account_info.last_name}`;
154
+
153
155
  if (account_info_changes_arr.includes('profile_picture') || account_info_changes_arr.includes('profile_avatar_stat')) {
154
156
  account_obj.account_info['profile_avatar'] = '';
155
157
  }
@@ -929,7 +931,7 @@ export const search_users = async function (req) {
929
931
  opt.skip = skip;
930
932
  }
931
933
 
932
- if (req?.bookmark !== 'nil') {
934
+ if (req?.bookmark && req?.bookmark !== 'nil') {
933
935
  opt.bookmark = bookmark;
934
936
  }
935
937
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.825",
3
+ "version": "1.2.827",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {