Skip to content

Commit d7d8eb0

Browse files
committed
fix: Rename
1 parent 797c0bb commit d7d8eb0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/chat/serializers/chat.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,14 +228,14 @@ def generate_chat(chat_id, application_id, message, chat_user_id, chat_user_type
228228
else:
229229
chat_info = ChatInfo.get_cache(chat_id)
230230
if chat_info is None:
231-
ser = ChatSerializers(data={
231+
open_chat = ChatSerializers(data={
232232
'chat_id': chat_id,
233233
'chat_user_id': chat_user_id,
234234
'chat_user_type': chat_user_type,
235235
'application_id': application_id
236236
})
237-
ser.is_valid(raise_exception=True)
238-
chat_info = ser.re_open_chat(chat_id)
237+
open_chat.is_valid(raise_exception=True)
238+
chat_info = open_chat.re_open_chat(chat_id)
239239
chat_info.set_cache()
240240
return chat_id
241241

0 commit comments

Comments
 (0)