@xuda.io/ai_module 1.1.3694 → 1.1.3696
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 -8
- 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
|
|
|
@@ -2756,12 +2757,6 @@ export const get_apps = async function (req, job_id, headers) {
|
|
|
2756
2757
|
let doc = { ts: e.team_req_date, pending: true, properties: {}, studio_meta: { createdByUid: e.team_req_from_uid }, team_req_id: e._id };
|
|
2757
2758
|
|
|
2758
2759
|
if (e.team_req_from_uid) {
|
|
2759
|
-
// const account_info_ret = await account_module.get_account_name({ uid_query: e.team_req_from_uid });
|
|
2760
|
-
// if (account_info_ret.code < 0) {
|
|
2761
|
-
// continue; // throw new Error(`account ${contact_uid} not found`);
|
|
2762
|
-
// }
|
|
2763
|
-
|
|
2764
|
-
// doc.account_info = account_info_ret.data;
|
|
2765
2760
|
doc.user_contact = await account_module.get_user_card(uid, e.team_req_from_uid);
|
|
2766
2761
|
}
|
|
2767
2762
|
}
|