@xuda.io/account_module 1.2.300 → 1.2.302
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 +11 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -106,7 +106,7 @@ export const update_account_info = async function (req, job_id, headers) {
|
|
|
106
106
|
delete account_obj.account_info.gtp_token;
|
|
107
107
|
delete account_obj.account_info.client_id;
|
|
108
108
|
delete account_obj.account_info.uid;
|
|
109
|
-
|
|
109
|
+
debugger;
|
|
110
110
|
if (!account_obj.account_project_id) {
|
|
111
111
|
const app_module = await import(`${module_path}/app_module/index.mjs`);
|
|
112
112
|
const ret = await app_module.create_project({ token_ret: req.token_ret, uid, data: { app_name: `Account ${uid} main project`, is_account_project: true, app_plugins_purchased: [' @xuda.io/xuda-dbs-plugin-xuda', '@xuda.io/xuda-framework-plugin-tailwind'] } }, job_id, headers);
|
|
@@ -1169,7 +1169,7 @@ export const get_contacts = async function (req) {
|
|
|
1169
1169
|
requests_from_ret = await db_module.find_couch_query('xuda_team', { selector: { docType: 'team_request', access_type: 'contact', team_req_stat: 2, team_req_from_uid: uid }, fields: ['team_req_date', 'team_req_to_email', 'team_req_from_uid'] });
|
|
1170
1170
|
requests_to_ret = await db_module.find_couch_query('xuda_team', {
|
|
1171
1171
|
selector: { docType: 'team_request', access_type: 'contact', team_req_stat: 2, team_req_to_uid: uid },
|
|
1172
|
-
fields: ['team_req_date', 'team_req_to_email', 'sender_account_info.email', 'sender_account_info.first_name', 'sender_account_info.last_name'],
|
|
1172
|
+
fields: ['team_req_date', 'team_req_to_email', 'sender_account_info.email', 'sender_account_info.first_name', 'sender_account_info.last_name', 'sender_account_info.profile_avatar'],
|
|
1173
1173
|
});
|
|
1174
1174
|
}
|
|
1175
1175
|
|
|
@@ -1178,7 +1178,15 @@ export const get_contacts = async function (req) {
|
|
|
1178
1178
|
data: {
|
|
1179
1179
|
docs: [
|
|
1180
1180
|
...requests_from_ret.docs.map((e) => ({ docType: 'contact', date_created: e.team_req_date, email: [e.team_req_to_email], name: '', profile_avatar: anonymous_image_url, pending: true, uid: e.team_req_from_uid })),
|
|
1181
|
-
...requests_to_ret.docs.map((e) => ({
|
|
1181
|
+
...requests_to_ret.docs.map((e) => ({
|
|
1182
|
+
docType: 'contact',
|
|
1183
|
+
date_created: e.team_req_date,
|
|
1184
|
+
email: [e.sender_account_info.email],
|
|
1185
|
+
name: `${e.sender_account_info.first_name} ${e.sender_account_info.last_name}`,
|
|
1186
|
+
profile_avatar: e.sender_account_info.profile_avatar || anonymous_image_url,
|
|
1187
|
+
pending: true,
|
|
1188
|
+
uid: e.team_req_from_uid,
|
|
1189
|
+
})),
|
|
1182
1190
|
...contacts_ret.docs,
|
|
1183
1191
|
],
|
|
1184
1192
|
},
|