@xuda.io/ai_module 1.1.3790 → 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.
Files changed (2) hide show
  1. package/index.mjs +15 -0
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -5899,6 +5899,21 @@ 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
+ let data = {};
5903
+ for (const item of workspace_pending_counts_ret.data.rows) {
5904
+ switch (item.key[1]) {
5905
+ case 'chat':
5906
+ data['ai_chats'] = item.value;
5907
+ break;
5908
+
5909
+ case 'chat':
5910
+ data['ai_chats'] = item.value;
5911
+ break;
5912
+
5913
+ default:
5914
+ break;
5915
+ }
5916
+ }
5902
5917
 
5903
5918
  return { code: 111, data: workspace_pending_counts_ret.data.rows };
5904
5919
  } catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.3790",
3
+ "version": "1.1.3792",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",