@xuda.io/account_module 1.2.1013 → 1.2.1015
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 +10 -15
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2445,7 +2445,7 @@ export const get_account_ai_usage = async function (req, job_id, headers) {
|
|
|
2445
2445
|
};
|
|
2446
2446
|
|
|
2447
2447
|
export const create_account_profile = async function (req, job_id, headers) {
|
|
2448
|
-
const { uid } = req;
|
|
2448
|
+
const { uid, profile_name, profile_signature, profile_email, profile_picture } = req;
|
|
2449
2449
|
try {
|
|
2450
2450
|
const app_id = await get_account_default_project_id(uid);
|
|
2451
2451
|
const { data: acc_obj } = await db_module.get_couch_doc('xuda_accounts', uid);
|
|
@@ -2453,22 +2453,17 @@ export const create_account_profile = async function (req, job_id, headers) {
|
|
|
2453
2453
|
const d = Date.now();
|
|
2454
2454
|
const doc = {
|
|
2455
2455
|
_id: await _common.xuda_get_uuid('contact'),
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
date_created: d,
|
|
2456
|
+
|
|
2457
|
+
stat: 3,
|
|
2458
|
+
date_created_ts: d,
|
|
2460
2459
|
ts: d,
|
|
2461
|
-
docType: '
|
|
2462
|
-
|
|
2460
|
+
docType: 'account_profile',
|
|
2461
|
+
|
|
2463
2462
|
uid,
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
metadata,
|
|
2469
|
-
is_spam,
|
|
2470
|
-
profile_avatar,
|
|
2471
|
-
profile_avatar_obj,
|
|
2463
|
+
profile_name,
|
|
2464
|
+
profile_signature,
|
|
2465
|
+
profile_email,
|
|
2466
|
+
profile_picture,
|
|
2472
2467
|
};
|
|
2473
2468
|
const save_ret = await db_module.save_couch_doc('xuda_accounts', doc);
|
|
2474
2469
|
|