@xuda.io/ai_module 1.1.5367 → 1.1.5369
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 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1205,7 +1205,7 @@ export const get_ai_chats = async function (req, job_id, headers) {
|
|
|
1205
1205
|
let opt = {
|
|
1206
1206
|
selector: {
|
|
1207
1207
|
docType: 'chat_conversation',
|
|
1208
|
-
stat:
|
|
1208
|
+
stat: { $lt: 4 },
|
|
1209
1209
|
reference_id: '',
|
|
1210
1210
|
},
|
|
1211
1211
|
limit: limit || 9999,
|
|
@@ -11233,6 +11233,7 @@ export const validate_credits_limit = async function (uid, profile_id) {
|
|
|
11233
11233
|
let { data: ai_credits } = await account_ms.get_account_ai_usage({ uid: account_profile_info.uid });
|
|
11234
11234
|
|
|
11235
11235
|
if (ai_credits.credits.total - ai_credits.usage.total < -0.5) {
|
|
11236
|
+
debugger;
|
|
11236
11237
|
throw new Error('ai credits reach to hard limit');
|
|
11237
11238
|
}
|
|
11238
11239
|
};
|