mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Fix push rule bug: can't insert bool into small int column
This commit is contained in:
parent
d79ffa1898
commit
22d2f498fa
@ -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",
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user