From 6b6ed90ff1db22bdf435acc51dfc822d479f75a7 Mon Sep 17 00:00:00 2001 From: DCloud_JSON Date: Wed, 8 May 2024 11:36:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E8=A7=A3=E5=86=B3?= =?UTF-8?q?=E5=9C=A8=E4=BD=8E=E7=89=88=E6=9C=AC=E7=9A=84=20nodejs=20?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E4=B8=8B=E4=B8=8D=E6=94=AF=E6=8C=81=E5=8F=AF?= =?UTF-8?q?=E5=85=88=E9=93=BE=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uniCloud/cloudfunctions/uni-im-co/msg.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uniCloud/cloudfunctions/uni-im-co/msg.js b/uniCloud/cloudfunctions/uni-im-co/msg.js index 31ac999..3557c27 100644 --- a/uniCloud/cloudfunctions/uni-im-co/msg.js +++ b/uniCloud/cloudfunctions/uni-im-co/msg.js @@ -460,7 +460,7 @@ async function _createOrUpdateConversation(conversation_id, msgData, chat_source }) .get() // console.error('createOrUpdateConversation receiver~~~~~', receiver); - if(receiver && receiver.role?.includes('staff')){ + if(receiver && receiver.role && receiver.role.includes('staff')){ // console.error('createOrUpdateConversation receiver.staff~~~~~'); check = true } -- GitLab