@xuda.io/account_module 1.2.2044 → 1.2.2045
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.
- package/index.mjs +4 -11
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2450,8 +2450,7 @@ export const get_contacts = async function (req, job_id, headers) {
|
|
|
2450
2450
|
export const archive_contact = async function (req) {
|
|
2451
2451
|
const { uid, contact_id } = req;
|
|
2452
2452
|
try {
|
|
2453
|
-
|
|
2454
|
-
await team_module.validate_share_exist(uid, 'contact', contact_id);
|
|
2453
|
+
await team_ms.validate_share_exist(uid, 'contact', contact_id);
|
|
2455
2454
|
|
|
2456
2455
|
var contact_doc = await get_contact(uid, contact_id);
|
|
2457
2456
|
|
|
@@ -3109,8 +3108,8 @@ export const archive_account_profile = async function (req) {
|
|
|
3109
3108
|
const { uid, profile_id } = req;
|
|
3110
3109
|
try {
|
|
3111
3110
|
const app_id = await get_account_default_project_id(uid);
|
|
3112
|
-
|
|
3113
|
-
await
|
|
3111
|
+
|
|
3112
|
+
await team_ms.validate_share_exist(uid, 'account_profile', profile_id);
|
|
3114
3113
|
|
|
3115
3114
|
var account_profile_doc = await db_module.get_app_couch_doc_native(app_id, profile_id);
|
|
3116
3115
|
|
|
@@ -3125,9 +3124,6 @@ export const archive_account_profile = async function (req) {
|
|
|
3125
3124
|
const account_profile_save_ret = await db_module.save_app_couch_doc(app_id, account_profile_doc);
|
|
3126
3125
|
|
|
3127
3126
|
return account_profile_save_ret;
|
|
3128
|
-
// } else {
|
|
3129
|
-
// return await team_module.change_account_profile_dependencies_status(account_profile_doc.team_req_id, 5);
|
|
3130
|
-
// }
|
|
3131
3127
|
} catch (err) {
|
|
3132
3128
|
return {
|
|
3133
3129
|
code: -22,
|
|
@@ -3164,7 +3160,7 @@ export const unarchive_account_profile = async function (req) {
|
|
|
3164
3160
|
const { profile_id } = req;
|
|
3165
3161
|
try {
|
|
3166
3162
|
const app_id = await get_account_default_project_id(uid);
|
|
3167
|
-
|
|
3163
|
+
|
|
3168
3164
|
var account_profile_doc = await db_module.get_app_couch_doc_native(app_id, profile_id);
|
|
3169
3165
|
|
|
3170
3166
|
if (account_profile_doc.stat !== 5) {
|
|
@@ -3179,9 +3175,6 @@ export const unarchive_account_profile = async function (req) {
|
|
|
3179
3175
|
|
|
3180
3176
|
return account_profile_save_ret;
|
|
3181
3177
|
}
|
|
3182
|
-
// else {
|
|
3183
|
-
// return await team_module.change_account_profile_dependencies_status(account_profile_doc.team_req_id, 3);
|
|
3184
|
-
// }
|
|
3185
3178
|
} catch (err) {
|
|
3186
3179
|
return {
|
|
3187
3180
|
code: -22,
|