Skip to content

Commit 925a9b0

Browse files
authored
fix: Dialogue user data debugging has also increased (#3641)
1 parent b93c5ab commit 925a9b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/chat/serializers/chat.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ def is_valid_chat_id(self, chat_info: ChatInfo):
190190
raise ChatException(500, _("Conversation does not exist"))
191191

192192
def is_valid_intraday_access_num(self):
193-
if [ChatUserType.ANONYMOUS_USER.value, ChatUserType.CHAT_USER.value].__contains__(
193+
if not self.data.get('debug') and [ChatUserType.ANONYMOUS_USER.value,
194+
ChatUserType.CHAT_USER.value].__contains__(
194195
self.data.get('chat_user_type')):
195196
access_client = QuerySet(ApplicationChatUserStats).filter(chat_user_id=self.data.get('chat_user_id'),
196197
application_id=self.data.get(

0 commit comments

Comments
 (0)