@xuda.io/ai_module 1.1.3787 → 1.1.3790
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 +17 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -5889,6 +5889,23 @@ export const modify_profile_avatar = async function (req, job_id, headers) {
|
|
|
5889
5889
|
}
|
|
5890
5890
|
};
|
|
5891
5891
|
|
|
5892
|
+
export const get_ai_workspace_pending_counts = async function (req, job_id, headers) {
|
|
5893
|
+
const { uid } = req;
|
|
5894
|
+
|
|
5895
|
+
try {
|
|
5896
|
+
const workspace_pending_counts_ret = await db_module.get_couch_view('xuda_team', 'pending_workspace_requests_count', {
|
|
5897
|
+
startkey: [uid, ''],
|
|
5898
|
+
endkey: [uid, 'zzzz'],
|
|
5899
|
+
reduce: true,
|
|
5900
|
+
group_level: 999,
|
|
5901
|
+
});
|
|
5902
|
+
|
|
5903
|
+
return { code: 111, data: workspace_pending_counts_ret.data.rows };
|
|
5904
|
+
} catch (err) {
|
|
5905
|
+
return { code: -111, data: err.message };
|
|
5906
|
+
}
|
|
5907
|
+
};
|
|
5908
|
+
|
|
5892
5909
|
const delete_depended_chats = async function (uid, reference_id) {
|
|
5893
5910
|
const chats_ret = await get_ai_chats({ uid, reference_id });
|
|
5894
5911
|
|