@xuda.io/account_module 1.2.1837 → 1.2.1838

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
@@ -2122,7 +2122,7 @@ export const add_contact = async function (req, job_id, headers) {
2122
2122
  selector: {
2123
2123
  docType: 'contact',
2124
2124
  stat: { $ne: 4 },
2125
- email,
2125
+ email: email.toLowerCase(),
2126
2126
  },
2127
2127
  limit: 1,
2128
2128
  fields: ['_id'],
@@ -2200,7 +2200,7 @@ export const add_contact = async function (req, job_id, headers) {
2200
2200
  const d = Date.now();
2201
2201
  const contact_obj = {
2202
2202
  _id: await _common.xuda_get_uuid('contact'),
2203
- email,
2203
+ email: email.toLowerCase(),
2204
2204
  name: cached_contact?.name || name,
2205
2205
  stat: stat || 3,
2206
2206
  date_created: metadata.email_data ? new Date(metadata.email_data).getTime() : d,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1837",
3
+ "version": "1.2.1838",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {