@xuda.io/account_module 1.2.1636 → 1.2.1638

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 -1
  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,
@@ -3047,6 +3047,7 @@ export const save_xuda_cache = async function (uid, docType, key, file, metadata
3047
3047
  if (!key || typeof key !== 'string') return null;
3048
3048
 
3049
3049
  const cache = await get_xuda_cache(uid, docType, key);
3050
+ if (cache) return;
3050
3051
 
3051
3052
  let doc = {
3052
3053
  _id: await _common.xuda_get_uuid('cache'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1636",
3
+ "version": "1.2.1638",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {