@xuda.io/account_module 1.2.1571 → 1.2.1573

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 +1 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -3122,7 +3122,7 @@ export const add_ai_credits_to_active_accounts = async function () {
3122
3122
  });
3123
3123
  debugger;
3124
3124
  const _24_hr_ms = 1000 * 60 * 60 * 24;
3125
- const active_accounts = await db_module.find_couch_query('xuda_accounts', { selector: { stat: 3, docType: 'account', last_free_daily_ai_credit_ts: { $lt: Date.now() - 100 }, membership_plan: 'free' }, limit: 99999 });
3125
+ const active_accounts = await db_module.find_couch_query('xuda_accounts', { selector: { stat: 3, docType: 'account', last_free_daily_ai_credit_ts: { $lt: Date.now() - _24_hr_ms }, membership_plan: 'free' }, limit: 99999 });
3126
3126
  for await (let account_doc of active_accounts.docs) {
3127
3127
  const ret = await record_ai_credit('system', 1, 'daily credit', 'free daily credit ' + date_str, account_doc._id);
3128
3128
  if (ret.code > -1) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1571",
3
+ "version": "1.2.1573",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {