Skip to content
Snippets Groups Projects
Commit c9ca285d authored by Erik Johnston's avatar Erik Johnston
Browse files

Merge pull request #805 from matrix-org/erikj/push_rules_cache

Fix GET /push_rules
parents 10de8c26 1d4ee854
No related branches found
No related tags found
No related merge requests found
......@@ -66,7 +66,10 @@ class PushRuleStore(SQLBaseStore):
if not user_ids:
defer.returnValue({})
results = {}
results = {
user_id: []
for user_id in user_ids
}
rows = yield self._simple_select_many_batch(
table="push_rules",
......@@ -90,7 +93,10 @@ class PushRuleStore(SQLBaseStore):
if not user_ids:
defer.returnValue({})
results = {}
results = {
user_id: {}
for user_id in user_ids
}
rows = yield self._simple_select_many_batch(
table="push_rules_enable",
......
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