@xuda.io/account_module 1.2.995 → 1.2.997

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.
Files changed (2) hide show
  1. package/index.mjs +12 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2403,7 +2403,7 @@ export const ts_contact = async function (contact_id) {
2403
2403
  }
2404
2404
  };
2405
2405
 
2406
- export const get_ai_usage = async function (req, job_id, headers) {
2406
+ export const get_account_ai_usage = async function (req, job_id, headers) {
2407
2407
  const { uid } = req;
2408
2408
  try {
2409
2409
  const app_id = await get_account_default_project_id(uid);
@@ -2434,3 +2434,14 @@ export const get_ai_usage = async function (req, job_id, headers) {
2434
2434
  return { code: -55, data: err.message };
2435
2435
  }
2436
2436
  };
2437
+
2438
+ setTimeout(async () => {
2439
+ const app_id = 'prj712ffdf5aa8adce6cedef988f9c12392'; //'prj3937cb6f9a31c8c7dea25055bba845b1'; //
2440
+ const uid = 'd39126e0e2c51ffbd1aad10709fc8335';
2441
+
2442
+ let ret;
2443
+
2444
+ ret = await get_account_ai_usage({ uid });
2445
+
2446
+ console.log(ret);
2447
+ }, 1000);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.995",
3
+ "version": "1.2.997",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {