@xuda.io/account_module 1.2.1100 → 1.2.1102
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 +2 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2711,7 +2711,8 @@ export const get_account_profiles = async function (req) {
|
|
|
2711
2711
|
export const archive_account_profile = async function (req) {
|
|
2712
2712
|
const { uid, profile_id } = req;
|
|
2713
2713
|
try {
|
|
2714
|
-
await
|
|
2714
|
+
const team_module = await import(`${module_path}/team_module/index.mjs`);
|
|
2715
|
+
await team_module.validate_share_exist(uid, 'profile', profile_id);
|
|
2715
2716
|
|
|
2716
2717
|
var account_profile_doc = await db_module.get_couch_doc_native('xuda_accounts', profile_id);
|
|
2717
2718
|
|