@xuda.io/account_module 1.2.229 → 1.2.231
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 +4 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1171,13 +1171,14 @@ export const add_contact = async function (req, job_id, headers) {
|
|
|
1171
1171
|
if (contact_ret.rows.length) {
|
|
1172
1172
|
throw new Error('contact already exist active or deleted');
|
|
1173
1173
|
}
|
|
1174
|
-
|
|
1174
|
+
const d = Date.now();
|
|
1175
1175
|
const doc = {
|
|
1176
1176
|
_id: await _common.xuda_get_uuid('contact'),
|
|
1177
1177
|
email: [email],
|
|
1178
1178
|
name,
|
|
1179
1179
|
stat: stat || 1,
|
|
1180
|
-
date_created:
|
|
1180
|
+
date_created: d,
|
|
1181
|
+
ts: d,
|
|
1181
1182
|
docType: 'contact',
|
|
1182
1183
|
contact_uid,
|
|
1183
1184
|
uid,
|
|
@@ -1495,7 +1496,7 @@ setTimeout(async () => {
|
|
|
1495
1496
|
|
|
1496
1497
|
// // console.log(await get_contact({ uid, name: "bo" }));
|
|
1497
1498
|
|
|
1498
|
-
let ret = await add_contact({ uid: 'd39126e0e2c51ffbd1aad10709fc8335', name: '
|
|
1499
|
+
let ret = await add_contact({ uid: 'd39126e0e2c51ffbd1aad10709fc8335', name: 'Boaz Avrahami', email: 'bocabo67@gmail.com', context: {} }, null, { 'accept-language': 'en-US,en;q=0.9,he;q=0.8' });
|
|
1499
1500
|
console.log(ret);
|
|
1500
1501
|
}, 2000);
|
|
1501
1502
|
|