Skip to content
Snippets Groups Projects
Unverified Commit dddb5aa7 authored by Erik Johnston's avatar Erik Johnston Committed by GitHub
Browse files

Merge pull request #3746 from matrix-org/erikj/mau_fixups

Fix MAU invalidation due to missing yield
parents a5806aba 4eb8408e
No related branches found
No related tags found
No related merge requests found
Fix MAU cache invalidation due to missing yield
......@@ -147,6 +147,7 @@ class MonthlyActiveUsersStore(SQLBaseStore):
return count
return self.runInteraction("count_users", _count_users)
@defer.inlineCallbacks
def upsert_monthly_active_user(self, user_id):
"""
Updates or inserts monthly active user member
......@@ -155,7 +156,7 @@ class MonthlyActiveUsersStore(SQLBaseStore):
Deferred[bool]: True if a new entry was created, False if an
existing one was updated.
"""
is_insert = self._simple_upsert(
is_insert = yield self._simple_upsert(
desc="upsert_monthly_active_user",
table="monthly_active_users",
keyvalues={
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment