@xuda.io/account_module 1.2.2222 → 1.2.2224

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
@@ -2445,7 +2445,7 @@ export const get_contacts = async function (req, job_id, headers) {
2445
2445
  }
2446
2446
 
2447
2447
  if (!contact_id && with_requests) {
2448
- if (filter_type === 'pending') {
2448
+ if (filter_type === 'pending' && account_profile_info.is_main) {
2449
2449
  ////// TO - OUT
2450
2450
  requests_to.docs = await get_pending_contact_out(uid);
2451
2451
  requests_to.total_docs = requests_to.docs.length;
@@ -3177,7 +3177,7 @@ export const delete_account_profile = async function (req, job_id, headers) {
3177
3177
  };
3178
3178
 
3179
3179
  export const unarchive_account_profile = async function (req) {
3180
- const { profile_id } = req;
3180
+ const { profile_id, uid } = req;
3181
3181
  try {
3182
3182
  const app_id = await get_account_default_project_id(uid);
3183
3183
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.2222",
3
+ "version": "1.2.2224",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {