@xuda.io/account_module 1.2.176 → 1.2.178
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 +7 -8
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2,13 +2,11 @@ import path from 'path';
|
|
|
2
2
|
import _ from 'lodash';
|
|
3
3
|
import { createRequire } from 'module';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
with: { type: 'json' },
|
|
11
|
-
});
|
|
5
|
+
global._conf = (
|
|
6
|
+
await import(path.join(process.env.XUDA_HOME, process.env.XUDA_CONFIG), {
|
|
7
|
+
with: { type: 'json' },
|
|
8
|
+
})
|
|
9
|
+
).default;
|
|
12
10
|
|
|
13
11
|
const _common = await import(path.join(process.env.XUDA_HOME, 'common', 'xuda_node_common.mjs'));
|
|
14
12
|
const _utils = await import(path.join(process.env.XUDA_HOME, 'common', 'xuda-cpi-utils.mjs'));
|
|
@@ -1151,7 +1149,7 @@ export const delete_contact = async function (req) {
|
|
|
1151
1149
|
// );
|
|
1152
1150
|
|
|
1153
1151
|
export const add_contact = async function (req) {
|
|
1154
|
-
const { uid, email, name, stat, contact_uid, req_id } = req;
|
|
1152
|
+
const { uid, email, name, stat, contact_uid, req_id, profile_picture } = req;
|
|
1155
1153
|
const contact_ret = await db_module.get_couch_view_raw('xuda_contacts', 'contacts_by_email_address', { key: [uid, email] });
|
|
1156
1154
|
|
|
1157
1155
|
if (!contact_ret.rows.length) {
|
|
@@ -1165,6 +1163,7 @@ export const add_contact = async function (req) {
|
|
|
1165
1163
|
contact_uid,
|
|
1166
1164
|
uid,
|
|
1167
1165
|
req_id,
|
|
1166
|
+
profile_picture,
|
|
1168
1167
|
});
|
|
1169
1168
|
return ret;
|
|
1170
1169
|
}
|