@xuda.io/ai_module 1.1.3728 → 1.1.3730
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 +6 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2405,6 +2405,11 @@ export const get_ai_agents = async function (req, job_id, headers) {
|
|
|
2405
2405
|
break;
|
|
2406
2406
|
}
|
|
2407
2407
|
|
|
2408
|
+
case 'purchased': {
|
|
2409
|
+
opt.selector['studio_meta.installed_from_uid'] = { $gt: null };
|
|
2410
|
+
break;
|
|
2411
|
+
}
|
|
2412
|
+
|
|
2408
2413
|
default:
|
|
2409
2414
|
break;
|
|
2410
2415
|
}
|
|
@@ -2478,7 +2483,7 @@ export const get_ai_agents = async function (req, job_id, headers) {
|
|
|
2478
2483
|
// purchased
|
|
2479
2484
|
if (doc.studio_meta.installed_from_uid && doc.studio_meta.installed_from_app_id) {
|
|
2480
2485
|
reference_doc = _.cloneDeep(doc);
|
|
2481
|
-
doc = await db_module.get_app_couch_doc_native(reference_doc.studio_meta.
|
|
2486
|
+
doc = await db_module.get_app_couch_doc_native(reference_doc.studio_meta.installed_from_app_id, doc._id);
|
|
2482
2487
|
doc.reference_doc = reference_doc;
|
|
2483
2488
|
}
|
|
2484
2489
|
|