@xuda.io/ai_module 1.1.4134 → 1.1.4137
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 +4 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1965,8 +1965,10 @@ export const archive_ai_chat = async function (req) {
|
|
|
1965
1965
|
await team_module.validate_share_exist(uid, 'chat', conversation_id);
|
|
1966
1966
|
|
|
1967
1967
|
let conversation_doc = await db_module.get_app_couch_doc_native(app_id, conversation_id);
|
|
1968
|
-
|
|
1969
|
-
if (conversation_doc.uid !== uid
|
|
1968
|
+
debugger;
|
|
1969
|
+
if (conversation_doc.uid !== uid && conversation_doc.active_account_profile_info.shared_from_uid !== uid) {
|
|
1970
|
+
throw new Error('Operation not allowed');
|
|
1971
|
+
}
|
|
1970
1972
|
|
|
1971
1973
|
conversation_doc.stat = 5;
|
|
1972
1974
|
conversation_doc.ts = Date.now();
|