mirror of https://github.com/zulip/zulip.git
fix_unreads: Fix error handling with no recipient_ids.
Previously, this would send an invalid database query to postgres.
This commit is contained in:
parent
b2c0ff68c2
commit
75d9f66bf0
|
@ -187,6 +187,9 @@ def fix_pre_pointer(cursor, user_profile):
|
|||
find_non_muted_recipients
|
||||
)
|
||||
|
||||
if not recipient_ids:
|
||||
return
|
||||
|
||||
user_message_ids = []
|
||||
|
||||
def find_old_ids():
|
||||
|
|
Loading…
Reference in New Issue