mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 04:23:46 +00:00
fix_unreads: Remove commit() call in fix().
The commit() call in fix() breaks migrations and tests (unless you mock) due to outer transactions. We now explicitly call commit() from the management command.
This commit is contained in:
@@ -248,4 +248,3 @@ def fix(user_profile):
|
||||
with connection.cursor() as cursor:
|
||||
fix_unsubscribed(cursor, user_profile)
|
||||
fix_pre_pointer(cursor, user_profile)
|
||||
connection.commit()
|
||||
|
||||
Reference in New Issue
Block a user