@xuda.io/account_module 1.2.2070 → 1.2.2072
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 +2 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -42,7 +42,7 @@ const _utils = await import(path.join(process.env.XUDA_HOME, 'common', 'xuda-cpi
|
|
|
42
42
|
// Module Paths
|
|
43
43
|
const module_path = path.join(process.env.XUDA_HOME, 'cpi') + (!_conf.is_debug ? '/node_modules/@xuda.io' : '');
|
|
44
44
|
|
|
45
|
-
const db_ms = await import(`${module_path}/db_module/
|
|
45
|
+
const db_ms = await import(`${module_path}/db_module/index.mjs`);
|
|
46
46
|
const ai_ms = await import(`${module_path}/ai_module/index_ms.mjs`);
|
|
47
47
|
const drive_ms = await import(`${module_path}/drive_module/index_ms.mjs`);
|
|
48
48
|
|
|
@@ -2948,7 +2948,7 @@ export const get_account_profile_info = async function (uid, contact_profile_doc
|
|
|
2948
2948
|
|
|
2949
2949
|
doc.members = await get_members();
|
|
2950
2950
|
const user_account_profiles = await get_user_account_profiles();
|
|
2951
|
-
|
|
2951
|
+
|
|
2952
2952
|
const usage_ret = await get_account_ai_usage({ uid });
|
|
2953
2953
|
doc.max_credits = usage_ret?.data?.credits.total / user_account_profiles.length;
|
|
2954
2954
|
doc.used_credits = 0;
|