fix: Rename
parent
797c0bb8d6
commit
9406a2c1da
|
|
@ -228,14 +228,14 @@ class OpenAIChatSerializer(serializers.Serializer):
|
||||||
else:
|
else:
|
||||||
chat_info = ChatInfo.get_cache(chat_id)
|
chat_info = ChatInfo.get_cache(chat_id)
|
||||||
if chat_info is None:
|
if chat_info is None:
|
||||||
ser = ChatSerializers(data={
|
open_chat = ChatSerializers(data={
|
||||||
'chat_id': chat_id,
|
'chat_id': chat_id,
|
||||||
'chat_user_id': chat_user_id,
|
'chat_user_id': chat_user_id,
|
||||||
'chat_user_type': chat_user_type,
|
'chat_user_type': chat_user_type,
|
||||||
'application_id': application_id
|
'application_id': application_id
|
||||||
})
|
})
|
||||||
ser.is_valid(raise_exception=True)
|
open_chat.is_valid(raise_exception=True)
|
||||||
chat_info = ser.re_open_chat(chat_id)
|
chat_info = open_chat.re_open_chat(chat_id)
|
||||||
chat_info.set_cache()
|
chat_info.set_cache()
|
||||||
return chat_id
|
return chat_id
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue