@xuda.io/ai_module 1.1.3694 → 1.1.3695
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
|
@@ -1921,15 +1921,16 @@ export const delete_ai_chat = async function (req) {
|
|
|
1921
1921
|
|
|
1922
1922
|
const app_id = await account_module.get_account_default_project_id(uid);
|
|
1923
1923
|
let conversation_doc = await db_module.get_app_couch_doc_native(app_id, conversation_id);
|
|
1924
|
+
let save_ret;
|
|
1924
1925
|
try {
|
|
1925
1926
|
if (conversation_doc.shared_from_uid) {
|
|
1926
1927
|
// delete the share , the doc will delete by the remove_team_member
|
|
1927
1928
|
const team_module = await import(`${module_path}/team_module/index.mjs`);
|
|
1928
|
-
team_module.remove_team_member({ team_req_id: conversation_doc.team_req_id });
|
|
1929
|
+
save_ret = await team_module.remove_team_member({ team_req_id: conversation_doc.team_req_id });
|
|
1929
1930
|
} else {
|
|
1930
1931
|
conversation_doc.stat = 4;
|
|
1931
1932
|
conversation_doc.ts = Date.now();
|
|
1932
|
-
|
|
1933
|
+
save_ret = await db_module.save_app_couch_doc(app_id, conversation_doc);
|
|
1933
1934
|
|
|
1934
1935
|
client.conversations.delete(conversation_id);
|
|
1935
1936
|
|