@xuda.io/ai_module 1.1.3585 → 1.1.3587

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.
Files changed (2) hide show
  1. package/index.mjs +1 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1873,13 +1873,12 @@ export const get_ai_chats = async function (req, job_id, headers) {
1873
1873
  export const delete_ai_chat = async function (req) {
1874
1874
  let { conversation_id, uid } = req;
1875
1875
 
1876
- // const project_db = await get_account_project_db(uid);
1877
1876
  const app_id = await account_module.get_account_default_project_id(uid);
1878
1877
  try {
1879
1878
  let conversation_doc = await db_module.get_app_couch_doc_native(app_id, conversation_id);
1880
1879
  conversation_doc.stat = 4;
1881
1880
  conversation_doc.ts = Date.now();
1882
- const data = await project_db.insert(conversation_doc);
1881
+ const data = await db_module.save_app_couch_doc(app_id, conversation_doc);
1883
1882
 
1884
1883
  client.conversations.delete(conversation_id);
1885
1884
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.3585",
3
+ "version": "1.1.3587",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",