mirror of
https://mau.dev/maunium/synapse.git
synced 2024-08-25 19:56:21 +00:00
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:
|
||||
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",
|
||||
|
Loading…
Reference in New Issue
Block a user