@xuda.io/account_module 1.2.1192 → 1.2.1193
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 +9 -9
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2804,17 +2804,17 @@ export const archive_account_profile = async function (req) {
|
|
|
2804
2804
|
if (account_profile_doc.reserve) {
|
|
2805
2805
|
throw new Error('reserve');
|
|
2806
2806
|
}
|
|
2807
|
-
if (!account_profile_doc.team_req_id) {
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2807
|
+
// if (!account_profile_doc.team_req_id) {
|
|
2808
|
+
account_profile_doc.stat = 5;
|
|
2809
|
+
account_profile_doc.stat_ts = Date.now();
|
|
2810
|
+
account_profile_doc.stat_reason = 'archived by the user';
|
|
2811
2811
|
|
|
2812
|
-
|
|
2812
|
+
const account_profile_save_ret = await db_module.save_couch_doc('xuda_accounts', account_profile_doc);
|
|
2813
2813
|
|
|
2814
|
-
|
|
2815
|
-
} else {
|
|
2816
|
-
|
|
2817
|
-
}
|
|
2814
|
+
return account_profile_save_ret;
|
|
2815
|
+
// } else {
|
|
2816
|
+
// return await team_module.change_account_profile_dependencies_status(account_profile_doc.team_req_id, 5);
|
|
2817
|
+
// }
|
|
2818
2818
|
} catch (err) {
|
|
2819
2819
|
return {
|
|
2820
2820
|
code: -22,
|