@xuda.io/ai_module 1.1.3791 → 1.1.3792
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 +7 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -5899,10 +5899,15 @@ export const get_ai_workspace_pending_counts = async function (req, job_id, head
|
|
|
5899
5899
|
reduce: true,
|
|
5900
5900
|
group_level: 999,
|
|
5901
5901
|
});
|
|
5902
|
-
|
|
5902
|
+
let data = {};
|
|
5903
5903
|
for (const item of workspace_pending_counts_ret.data.rows) {
|
|
5904
5904
|
switch (item.key[1]) {
|
|
5905
|
-
case '
|
|
5905
|
+
case 'chat':
|
|
5906
|
+
data['ai_chats'] = item.value;
|
|
5907
|
+
break;
|
|
5908
|
+
|
|
5909
|
+
case 'chat':
|
|
5910
|
+
data['ai_chats'] = item.value;
|
|
5906
5911
|
break;
|
|
5907
5912
|
|
|
5908
5913
|
default:
|