fix_unreads: Fix error handling with no recipient_ids.

Previously, this would send an invalid database query to postgres.
This commit is contained in:
Tim Abbott 2017-08-23 17:15:18 -07:00
parent b2c0ff68c2
commit 75d9f66bf0
1 changed files with 3 additions and 0 deletions

View File

@ -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():