@xuda.io/ai_module 1.1.3602 → 1.1.3604
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 +3 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2317,6 +2317,7 @@ export const get_ai_agent_info = async function (uid, job_id, headers, doc, from
|
|
|
2317
2317
|
};
|
|
2318
2318
|
|
|
2319
2319
|
export const get_ai_agents = async function (req, job_id, headers) {
|
|
2320
|
+
debugger;
|
|
2320
2321
|
let { uid, _id, search, filter_type = 'all', limit, skip } = req;
|
|
2321
2322
|
|
|
2322
2323
|
try {
|
|
@@ -2448,7 +2449,7 @@ export const delete_ai_agent = async function (req) {
|
|
|
2448
2449
|
await client.files.delete(file_id);
|
|
2449
2450
|
}
|
|
2450
2451
|
}
|
|
2451
|
-
delete_depended_chats(
|
|
2452
|
+
delete_depended_chats(uid, agent_id);
|
|
2452
2453
|
return { code: 9, data };
|
|
2453
2454
|
} catch (err) {
|
|
2454
2455
|
return { code: -9, data: err.message };
|
|
@@ -2555,7 +2556,7 @@ export const delete_mini_app = async function (req) {
|
|
|
2555
2556
|
prog_doc.stat = 4;
|
|
2556
2557
|
prog_doc.ts = Date.now();
|
|
2557
2558
|
const save_ret = await db_module.save_app_couch_doc(app_id, prog_doc);
|
|
2558
|
-
|
|
2559
|
+
delete_depended_chats(uid, prog_id);
|
|
2559
2560
|
return save_ret;
|
|
2560
2561
|
} catch (err) {
|
|
2561
2562
|
return { code: -9, data: err.message };
|