@xuda.io/ai_module 1.1.3791 → 1.1.3793
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 +16 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -5899,10 +5899,23 @@ 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 'ai_agent':
|
|
5910
|
+
data['ai_agents'] = item.value;
|
|
5911
|
+
break;
|
|
5912
|
+
|
|
5913
|
+
case 'miniapp':
|
|
5914
|
+
data['apps'] = item.value;
|
|
5915
|
+
break;
|
|
5916
|
+
|
|
5917
|
+
case 'contact':
|
|
5918
|
+
data['contacts'] = item.value;
|
|
5906
5919
|
break;
|
|
5907
5920
|
|
|
5908
5921
|
default:
|
|
@@ -5910,7 +5923,7 @@ export const get_ai_workspace_pending_counts = async function (req, job_id, head
|
|
|
5910
5923
|
}
|
|
5911
5924
|
}
|
|
5912
5925
|
|
|
5913
|
-
return { code: 111, data
|
|
5926
|
+
return { code: 111, data };
|
|
5914
5927
|
} catch (err) {
|
|
5915
5928
|
return { code: -111, data: err.message };
|
|
5916
5929
|
}
|