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

Fix GET /push_rules
This commit is contained in:
Erik Johnston 2016-05-31 16:42:21 +01:00
commit c9ca285d33

View File

@ -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",