@xuda.io/ai_module 1.1.3690 → 1.1.3692
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 +1 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1920,13 +1920,12 @@ export const delete_ai_chat = async function (req) {
|
|
|
1920
1920
|
let { conversation_id, uid } = req;
|
|
1921
1921
|
|
|
1922
1922
|
const app_id = await account_module.get_account_default_project_id(uid);
|
|
1923
|
+
let conversation_doc = await db_module.get_app_couch_doc_native(app_id, conversation_id);
|
|
1923
1924
|
try {
|
|
1924
1925
|
if (conversation_doc.shared_from_uid) {
|
|
1925
|
-
// const team_req = await db_module.get_couch_doc_native('xuda_team', conversation_doc.team_req_id);
|
|
1926
1926
|
const team_module = await import(`${module_path}/team_module/index.mjs`);
|
|
1927
1927
|
team_module.remove_team_member({ team_req_id: conversation_doc.team_req_id });
|
|
1928
1928
|
} else {
|
|
1929
|
-
let conversation_doc = await db_module.get_app_couch_doc_native(app_id, conversation_id);
|
|
1930
1929
|
conversation_doc.stat = 4;
|
|
1931
1930
|
conversation_doc.ts = Date.now();
|
|
1932
1931
|
const save_ret = await db_module.save_app_couch_doc(app_id, conversation_doc);
|