@xuda.io/account_module 1.2.1582 → 1.2.1584
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 +8 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1919,7 +1919,7 @@ setTimeout(async () => {
|
|
|
1919
1919
|
// ret = await set_contact_profile_picture(uid, 'cnt_2d21d55f8f0cdaf65a7a69f69617f532', {}, null, {});
|
|
1920
1920
|
// ret = await get_picture_cache(uid, 'chat_thumbnail', 'word five title');
|
|
1921
1921
|
// add_ai_credits_to_active_accounts();
|
|
1922
|
-
|
|
1922
|
+
|
|
1923
1923
|
console.log(ret);
|
|
1924
1924
|
}, 1000);
|
|
1925
1925
|
|
|
@@ -3134,7 +3134,7 @@ export const add_ai_credits_to_active_accounts = async function () {
|
|
|
3134
3134
|
}
|
|
3135
3135
|
};
|
|
3136
3136
|
|
|
3137
|
-
export const
|
|
3137
|
+
export const archive_expire_ai_credits = async function () {
|
|
3138
3138
|
const _24_hr_ms = 1000 * 60 * 60 * 24;
|
|
3139
3139
|
const _mo_ms = _24_hr_ms * 30;
|
|
3140
3140
|
|
|
@@ -3146,3 +3146,9 @@ export const ai_credits_expiration = async function () {
|
|
|
3146
3146
|
const save_ret = await db_module.save_couch_doc('xuda_billing', ai_credit_doc);
|
|
3147
3147
|
}
|
|
3148
3148
|
};
|
|
3149
|
+
|
|
3150
|
+
export const read_accounts_email = async function () {
|
|
3151
|
+
const active_accounts = await db_module.find_couch_query('xuda_accounts', { selector: { stat: 3, docType: 'account', membership_plan: 'free' }, limit: 99999 });
|
|
3152
|
+
for await (let account_doc of active_accounts.docs) {
|
|
3153
|
+
}
|
|
3154
|
+
};
|