@xuda.io/ai_module 1.1.5478 → 1.1.5479

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 +4 -0
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1536,6 +1536,10 @@ export const delete_conversation_item = async function (req) {
1536
1536
 
1537
1537
  let save_ret;
1538
1538
  try {
1539
+ if (conversation_item_doc.uid !== uid) {
1540
+ throw new Error('Operation not allowed');
1541
+ }
1542
+
1539
1543
  conversation_item_doc.stat = 4;
1540
1544
  conversation_item_doc.ts = Date.now();
1541
1545
  save_ret = await db_module.save_app_couch_doc(account_profile_info.app_id, conversation_item_doc);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5478",
3
+ "version": "1.1.5479",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",