Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 1e9fc9b

Browse files
committed
Fix bugs.
1 parent 820ca7f commit 1e9fc9b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

synapse/push/bulk_push_rule_evaluator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ async def action_for_event_by_user(
226226
rel_types = set()
227227
for rule in itertools.chain(*rules_by_user.values()):
228228
# Skip disabled rules.
229-
if not rule.get("enabled"):
229+
if "enabled" in rule and not rule["enabled"]:
230230
continue
231231

232232
for condition in rule["conditions"]:

synapse/storage/databases/main/relations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ async def get_mutual_event_relations(
796796
The event type
797797
"""
798798
rel_type_sql, rel_type_args = make_in_list_sql_clause(
799-
self.database_engine, "rel_type", relation_types
799+
self.database_engine, "relation_type", relation_types
800800
)
801801

802802
sql = f"""

0 commit comments

Comments
 (0)