@xuda.io/account_module 1.2.1112 → 1.2.1114

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 +5 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2693,8 +2693,11 @@ export const get_account_profiles = async function (req) {
2693
2693
  let profile_docs = { docs: [], total_docs: profiles.total_docs };
2694
2694
  for await (let doc of profiles.docs) {
2695
2695
  doc = await get_account_profile_info(uid, doc);
2696
-
2697
- profile_docs.docs.push(doc);
2696
+ if (doc.reserve) {
2697
+ profile_docs.docs.unshift(doc);
2698
+ } else {
2699
+ profile_docs.docs.push(doc);
2700
+ }
2698
2701
  }
2699
2702
 
2700
2703
  if (!profile_id) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1112",
3
+ "version": "1.2.1114",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {