From 9bef019d0958b9c31ed328404d2f93d2d0c70808 Mon Sep 17 00:00:00 2001 From: Lei OT Date: Tue, 7 Jan 2025 12:50:56 +0800 Subject: [PATCH] =?UTF-8?q?fix(wai):=20=E5=BC=95=E7=94=A8=E7=9A=84?= =?UTF-8?q?=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wai-server/helper/wai.msg.helper.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wai-server/helper/wai.msg.helper.js b/wai-server/helper/wai.msg.helper.js index 2a33152..3548913 100644 --- a/wai-server/helper/wai.msg.helper.js +++ b/wai-server/helper/wai.msg.helper.js @@ -62,7 +62,7 @@ const mediaMsg = { filename: row.IVADS_filename, }, type: row.msgtype, - ...(row.context_id ? { context: { message_id: row.context_id, from: row.context_from } } : {}), + ...(row.context_id ? { context: { id: row.context_id, from: row.context_from } } : {}), }), }; @@ -103,7 +103,7 @@ const waiMsgTypeMapped = { DbData: row => ({ type: 'text', text: { body: row.text_body, preview_url: row.text_preview_url }, - ...(row.context_id ? { context: { message_id: row.context_id, from: row.context_from } } : {}), + ...(row.context_id ? { context: { id: row.context_id, from: row.context_from } } : {}), }), }, image: {