@xuda.io/ai_module 1.1.4014 → 1.1.4016
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 +7 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2422,6 +2422,11 @@ export const get_ai_agents = async function (req, job_id, headers) {
|
|
|
2422
2422
|
break;
|
|
2423
2423
|
}
|
|
2424
2424
|
|
|
2425
|
+
case 'pinned': {
|
|
2426
|
+
opt.selector['studio_meta.pinned'] = true;
|
|
2427
|
+
break;
|
|
2428
|
+
}
|
|
2429
|
+
|
|
2425
2430
|
default:
|
|
2426
2431
|
break;
|
|
2427
2432
|
}
|
|
@@ -6397,10 +6402,10 @@ export const create_mini_app = async function (req, job_id, headers) {
|
|
|
6397
6402
|
};
|
|
6398
6403
|
|
|
6399
6404
|
export const pin_ai_agent = async function (req) {
|
|
6400
|
-
const { uid,
|
|
6405
|
+
const { uid, agent_id } = req;
|
|
6401
6406
|
try {
|
|
6402
6407
|
const app_id = await account_module.get_account_default_project_id(uid);
|
|
6403
|
-
const ai_agent_doc = await db_module.get_app_couch_doc_native(app_id,
|
|
6408
|
+
const ai_agent_doc = await db_module.get_app_couch_doc_native(app_id, agent_id);
|
|
6404
6409
|
|
|
6405
6410
|
ai_agent_doc.studio_meta.pinned = true;
|
|
6406
6411
|
|