@xuda.io/account_module 1.2.2217 → 1.2.2219

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 +4 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -3120,7 +3120,7 @@ export const archive_account_profile = async function (req) {
3120
3120
  try {
3121
3121
  const app_id = await get_account_default_project_id(uid);
3122
3122
 
3123
- await team_ms.validate_share_exist(uid, 'account_profile', profile_id);
3123
+ // await team_ms.validate_share_exist(uid, 'account_profile', profile_id);
3124
3124
 
3125
3125
  var account_profile_doc = await db_module.get_app_couch_doc_native(app_id, profile_id);
3126
3126
 
@@ -3147,6 +3147,9 @@ export const delete_account_profile = async function (req, job_id, headers) {
3147
3147
  const { profile_id, uid } = req;
3148
3148
  try {
3149
3149
  const app_id = await get_account_default_project_id(uid);
3150
+
3151
+ await team_ms.validate_share_exist(uid, 'account_profile', profile_id);
3152
+
3150
3153
  var account_profile_doc = await db_module.get_app_couch_doc_native(app_id, profile_id);
3151
3154
  if (account_profile_doc.stat !== 5) {
3152
3155
  throw new Error('A document can only be deleted after it has been archived');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.2217",
3
+ "version": "1.2.2219",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {