1
0

fix transaction wrapping bug that caused get_user_id_by_threepid_txn to fail

This commit is contained in:
Neil Johnson
2018-11-20 18:23:11 +00:00
parent 678ad155a2
commit ffc71bc06c

View File

@@ -34,8 +34,9 @@ class MonthlyActiveUsersStore(SQLBaseStore):
self.hs = hs
self.reserved_users = ()
# Do not add more reserved users than the total allowable number
self._initialise_reserved_users(
dbconn.cursor(),
self._new_transaction(
dbconn, "initialise_mau_threepids", [], [],
self._initialise_reserved_users,
hs.config.mau_limits_reserved_threepids[:self.hs.config.max_mau_value],
)