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

Commit

Permalink
Fix bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep committed May 23, 2022
1 parent 820ca7f commit 1e9fc9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion synapse/push/bulk_push_rule_evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ async def action_for_event_by_user(
rel_types = set()
for rule in itertools.chain(*rules_by_user.values()):
# Skip disabled rules.
if not rule.get("enabled"):
if "enabled" in rule and not rule["enabled"]:
continue

for condition in rule["conditions"]:
Expand Down
2 changes: 1 addition & 1 deletion synapse/storage/databases/main/relations.py
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ async def get_mutual_event_relations(
The event type
"""
rel_type_sql, rel_type_args = make_in_list_sql_clause(
self.database_engine, "rel_type", relation_types
self.database_engine, "relation_type", relation_types
)

sql = f"""
Expand Down

0 comments on commit 1e9fc9b

Please sign in to comment.