@xuda.io/account_module 1.2.223 → 1.2.224

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
@@ -1166,7 +1166,7 @@ export const add_contact = async function (req, job_id, headers) {
1166
1166
  const contact_ret = await db_module.get_couch_view_raw('xuda_contacts', 'contacts_by_email_address', { key: [uid, email] });
1167
1167
 
1168
1168
  if (contact_ret.rows.length) {
1169
- // throw new Error('contact already exist active or deleted');
1169
+ throw new Error('contact already exist active or deleted');
1170
1170
  }
1171
1171
 
1172
1172
  const doc = {
@@ -1183,7 +1183,7 @@ export const add_contact = async function (req, job_id, headers) {
1183
1183
  context,
1184
1184
  headers,
1185
1185
  };
1186
- // const ret = await db_module.save_couch_doc('xuda_contacts', doc);
1186
+ const ret = await db_module.save_couch_doc('xuda_contacts', doc);
1187
1187
 
1188
1188
  const app_id = await get_account_default_project_id(uid);
1189
1189
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.223",
3
+ "version": "1.2.224",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {