@xuda.io/account_module 1.2.230 → 1.2.232
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 +5 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1172,12 +1172,16 @@ export const add_contact = async function (req, job_id, headers) {
|
|
|
1172
1172
|
throw new Error('contact already exist active or deleted');
|
|
1173
1173
|
}
|
|
1174
1174
|
|
|
1175
|
+
const account_abj = await get_account_name({ uid_query: contact_uid });
|
|
1176
|
+
|
|
1177
|
+
const d = Date.now();
|
|
1175
1178
|
const doc = {
|
|
1176
1179
|
_id: await _common.xuda_get_uuid('contact'),
|
|
1177
1180
|
email: [email],
|
|
1178
1181
|
name,
|
|
1179
1182
|
stat: stat || 1,
|
|
1180
|
-
date_created:
|
|
1183
|
+
date_created: d,
|
|
1184
|
+
ts: d,
|
|
1181
1185
|
docType: 'contact',
|
|
1182
1186
|
contact_uid,
|
|
1183
1187
|
uid,
|