@xuda.io/account_module 1.2.1055 → 1.2.1056
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 +5 -5
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2593,12 +2593,12 @@ export const get_account_profiles = async function (req) {
|
|
|
2593
2593
|
export const archive_account_profile = async function (req) {
|
|
2594
2594
|
const { profile_id } = req;
|
|
2595
2595
|
try {
|
|
2596
|
-
var
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2596
|
+
var contact_profile_doc = await db_module.get_couch_doc_native('xuda_accounts', profile_id);
|
|
2597
|
+
contact_profile_doc.stat = 5;
|
|
2598
|
+
contact_profile_doc.stat_ts = Date.now();
|
|
2599
|
+
contact_profile_doc.stat_reason = 'archived by the user';
|
|
2600
2600
|
|
|
2601
|
-
const contact_save_ret = await db_module.save_couch_doc('xuda_accounts',
|
|
2601
|
+
const contact_save_ret = await db_module.save_couch_doc('xuda_accounts', contact_profile_doc);
|
|
2602
2602
|
|
|
2603
2603
|
return contact_save_ret;
|
|
2604
2604
|
} catch (err) {
|