Skip to content
Snippets Groups Projects
Commit 22d2f498 authored by Erik Johnston's avatar Erik Johnston
Browse files

Fix push rule bug: can't insert bool into small int column

parent d79ffa18
No related branches found
No related tags found
No related merge requests found
......@@ -211,7 +211,7 @@ class PushRuleStore(SQLBaseStore):
yield self._simple_upsert(
PushRuleEnableTable.table_name,
{'user_name': user_name, 'rule_id': rule_id},
{'enabled': enabled},
{'enabled': 1 if enabled else 0},
desc="set_push_rule_enabled",
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment