Merge pull request #8029 from rohitwaghchaure/not_able_to_save_chat_room
fix: not able to save chat room
This commit is contained in:
commit
e5e99c1117
1 changed files with 2 additions and 1 deletions
|
|
@ -72,8 +72,9 @@ class ChatRoom(Document):
|
|||
def on_update(self):
|
||||
if not self.is_new():
|
||||
before = self.get_doc_before_save()
|
||||
after = self
|
||||
if not before: return
|
||||
|
||||
after = self
|
||||
diff = dictify(get_diff(before, after))
|
||||
if diff:
|
||||
update = { }
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue