@xuda.io/ai_module 1.1.5478 → 1.1.5480
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 -0
- 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);
|