@xuda.io/account_module 1.2.366 → 1.2.368
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 -6
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1261,15 +1261,15 @@ export const add_contact = async function (req, job_id, headers) {
|
|
|
1261
1261
|
throw new Error('contact already exist active or deleted');
|
|
1262
1262
|
}
|
|
1263
1263
|
|
|
1264
|
-
let profile_picture;
|
|
1265
|
-
let profile_avatar;
|
|
1264
|
+
// let profile_picture;
|
|
1265
|
+
// let profile_avatar;
|
|
1266
1266
|
if (contact_uid) {
|
|
1267
1267
|
const account_ret = await get_account_name({ uid_query: contact_uid });
|
|
1268
1268
|
if (account_ret.code < 0) {
|
|
1269
1269
|
throw new Error(`account ${contact_uid} not found`);
|
|
1270
1270
|
}
|
|
1271
|
-
profile_picture = account_ret.data.profile_picture;
|
|
1272
|
-
profile_avatar = account_ret.data.profile_avatar;
|
|
1271
|
+
// profile_picture = account_ret.data.profile_picture;
|
|
1272
|
+
// profile_avatar = account_ret.data.profile_avatar;
|
|
1273
1273
|
}
|
|
1274
1274
|
const d = Date.now();
|
|
1275
1275
|
const doc = {
|
|
@@ -1282,7 +1282,6 @@ export const add_contact = async function (req, job_id, headers) {
|
|
|
1282
1282
|
docType: 'contact',
|
|
1283
1283
|
contact_uid,
|
|
1284
1284
|
uid,
|
|
1285
|
-
|
|
1286
1285
|
context,
|
|
1287
1286
|
headers,
|
|
1288
1287
|
source,
|
|
@@ -1290,7 +1289,7 @@ export const add_contact = async function (req, job_id, headers) {
|
|
|
1290
1289
|
};
|
|
1291
1290
|
const ret = await db_module.save_couch_doc('xuda_contacts', doc);
|
|
1292
1291
|
|
|
1293
|
-
if (!profile_avatar) {
|
|
1292
|
+
if (!account_ret.data.profile_avatar) {
|
|
1294
1293
|
const app_id = await get_account_default_project_id(uid);
|
|
1295
1294
|
const ai_module = await import(`${module_path}/ai_module/index.mjs`);
|
|
1296
1295
|
ai_module.update_thumbnail('contact', doc, app_id, uid, job_id, headers, 'xuda_contacts');
|