@xuda.io/account_module 1.2.1104 → 1.2.1106
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 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1711,6 +1711,9 @@ export const get_contacts = async function (req) {
|
|
|
1711
1711
|
export const archive_contact = async function (req) {
|
|
1712
1712
|
const { contact_id } = req;
|
|
1713
1713
|
try {
|
|
1714
|
+
const team_module = await import(`${module_path}/team_module/index.mjs`);
|
|
1715
|
+
await team_module.validate_share_exist(uid, 'contact', contact_id);
|
|
1716
|
+
|
|
1714
1717
|
var contact_doc = await db_module.get_couch_doc_native('xuda_contacts', contact_id);
|
|
1715
1718
|
contact_doc.stat = 5;
|
|
1716
1719
|
contact_doc.stat_ts = Date.now();
|
|
@@ -2712,7 +2715,7 @@ export const archive_account_profile = async function (req) {
|
|
|
2712
2715
|
const { uid, profile_id } = req;
|
|
2713
2716
|
try {
|
|
2714
2717
|
const team_module = await import(`${module_path}/team_module/index.mjs`);
|
|
2715
|
-
await team_module.validate_share_exist(uid, '
|
|
2718
|
+
await team_module.validate_share_exist(uid, 'account_profile', profile_id);
|
|
2716
2719
|
|
|
2717
2720
|
var account_profile_doc = await db_module.get_couch_doc_native('xuda_accounts', profile_id);
|
|
2718
2721
|
|