Merge pull request #805 from matrix-org/erikj/push_rules_cache
Fix GET /push_rules
This commit is contained in:
commit
c9ca285d33
|
@ -66,7 +66,10 @@ class PushRuleStore(SQLBaseStore):
|
||||||
if not user_ids:
|
if not user_ids:
|
||||||
defer.returnValue({})
|
defer.returnValue({})
|
||||||
|
|
||||||
results = {}
|
results = {
|
||||||
|
user_id: []
|
||||||
|
for user_id in user_ids
|
||||||
|
}
|
||||||
|
|
||||||
rows = yield self._simple_select_many_batch(
|
rows = yield self._simple_select_many_batch(
|
||||||
table="push_rules",
|
table="push_rules",
|
||||||
|
@ -90,7 +93,10 @@ class PushRuleStore(SQLBaseStore):
|
||||||
if not user_ids:
|
if not user_ids:
|
||||||
defer.returnValue({})
|
defer.returnValue({})
|
||||||
|
|
||||||
results = {}
|
results = {
|
||||||
|
user_id: {}
|
||||||
|
for user_id in user_ids
|
||||||
|
}
|
||||||
|
|
||||||
rows = yield self._simple_select_many_batch(
|
rows = yield self._simple_select_many_batch(
|
||||||
table="push_rules_enable",
|
table="push_rules_enable",
|
||||||
|
|
Loading…
Reference in New Issue