@xuda.io/ai_module 1.1.3923 → 1.1.3924
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 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2795,7 +2795,7 @@ export const get_apps = async function (req, job_id, headers) {
|
|
|
2795
2795
|
|
|
2796
2796
|
const app_id = await account_module.get_account_default_project_id(uid);
|
|
2797
2797
|
|
|
2798
|
-
let user_apps = { docs: [] };
|
|
2798
|
+
let user_apps = { docs: [], total_docs: 0 };
|
|
2799
2799
|
if (filter_type !== 'pending') {
|
|
2800
2800
|
user_apps = await db_module.find_app_couch_query(app_id, opt);
|
|
2801
2801
|
}
|
|
@@ -2805,7 +2805,7 @@ export const get_apps = async function (req, job_id, headers) {
|
|
|
2805
2805
|
///////////////
|
|
2806
2806
|
////// FROM - IN
|
|
2807
2807
|
|
|
2808
|
-
let requests_from = { docs: [] };
|
|
2808
|
+
let requests_from = { docs: [], total_docs: 0 };
|
|
2809
2809
|
if (!mini_app_id) {
|
|
2810
2810
|
if (filter_type === 'pending') {
|
|
2811
2811
|
const from_opt = { selector: { docType: 'team_request', access_type: 'miniapp', team_req_stat: 2, team_req_to_uid: uid }, fields: ['_id', 'team_req_date', 'sender_account_info.email', 'team_req_from_uid', 'share_item_id'] };
|