@xuda.io/account_module 1.2.1637 → 1.2.1639

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.
Files changed (2) hide show
  1. package/index.mjs +2 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1987,7 +1987,7 @@ export const add_contact = async function (req, job_id, headers) {
1987
1987
  email,
1988
1988
  name: cached_contact?.name || name,
1989
1989
  stat: stat || 3,
1990
- date_created: Date.now(metadata.email_data),
1990
+ date_created: new Date(metadata.email_data).getTime(),
1991
1991
  ts: d,
1992
1992
  docType: 'contact',
1993
1993
  contact_uid,
@@ -3088,7 +3088,7 @@ export const get_xuda_cache = async function (uid, docType, key, return_property
3088
3088
  export const save_cache_hit = async function (_id) {
3089
3089
  let doc_ret = await db_module.get_couch_doc('xuda_cache', _id);
3090
3090
  if (doc_ret.code > -1) {
3091
- doc_ret.data.hit++;
3091
+ doc_ret.data.hits++;
3092
3092
  await db_module.save_couch_doc('xuda_cache', doc_ret.data);
3093
3093
  }
3094
3094
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1637",
3
+ "version": "1.2.1639",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {