@xuda.io/account_module 1.2.2158 → 1.2.2160
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 +1 -1
- package/index_ms.mjs +4 -0
- package/index_msa.mjs +4 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -3389,7 +3389,7 @@ export const get_account_ai_usage = async function (req, job_id, headers) {
|
|
|
3389
3389
|
try {
|
|
3390
3390
|
const app_id = await get_account_default_project_id(uid);
|
|
3391
3391
|
|
|
3392
|
-
const timestamp_from = new Date(Number(year_from) || year, month - 1, day).getTime();
|
|
3392
|
+
const timestamp_from = new Date(Number(year_from) || year, (Number(month_from) || month) - 1, Number(day_from) || day).getTime();
|
|
3393
3393
|
|
|
3394
3394
|
const ai_usage = await db_module.get_couch_view('xuda_usage', 'ai_usage', {
|
|
3395
3395
|
startkey: [uid, year_from || curr_year, month_from || curr_month, day_from || 0],
|
package/index_ms.mjs
CHANGED
|
@@ -289,6 +289,10 @@ export const get_account_ai_usage = async function (...args) {
|
|
|
289
289
|
return await broker.send_to_queue("get_account_ai_usage", ...args);
|
|
290
290
|
};
|
|
291
291
|
|
|
292
|
+
export const get_account_ai_usage_old = async function (...args) {
|
|
293
|
+
return await broker.send_to_queue("get_account_ai_usage_old", ...args);
|
|
294
|
+
};
|
|
295
|
+
|
|
292
296
|
export const record_ai_usage = async function (...args) {
|
|
293
297
|
return await broker.send_to_queue("record_ai_usage", ...args);
|
|
294
298
|
};
|
package/index_msa.mjs
CHANGED
|
@@ -289,6 +289,10 @@ export const get_account_ai_usage = function (...args) {
|
|
|
289
289
|
broker.send_to_queue_async("get_account_ai_usage", ...args);
|
|
290
290
|
};
|
|
291
291
|
|
|
292
|
+
export const get_account_ai_usage_old = function (...args) {
|
|
293
|
+
broker.send_to_queue_async("get_account_ai_usage_old", ...args);
|
|
294
|
+
};
|
|
295
|
+
|
|
292
296
|
export const record_ai_usage = function (...args) {
|
|
293
297
|
broker.send_to_queue_async("record_ai_usage", ...args);
|
|
294
298
|
};
|