@xuda.io/account_module 1.2.380 → 1.2.382
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 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1232,7 +1232,7 @@ export const get_contacts = async function (req) {
|
|
|
1232
1232
|
};
|
|
1233
1233
|
};
|
|
1234
1234
|
|
|
1235
|
-
export const
|
|
1235
|
+
export const archive_contact = async function (req) {
|
|
1236
1236
|
const { _id } = req;
|
|
1237
1237
|
|
|
1238
1238
|
const contact_ret = await db_module.get_couch_doc('xuda_contacts', _id);
|
|
@@ -1240,7 +1240,7 @@ export const delete_contact = async function (req) {
|
|
|
1240
1240
|
return contact_ret;
|
|
1241
1241
|
}
|
|
1242
1242
|
var contact_doc = contact_ret.data;
|
|
1243
|
-
|
|
1243
|
+
contact_doc.stat = 4;
|
|
1244
1244
|
contact_doc.stat_ts = Date.now();
|
|
1245
1245
|
contact_doc.stat_reason = 'deleted';
|
|
1246
1246
|
|