summary refs log tree commit diff
path: root/synapse/storage/_base.py
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/storage/_base.py')
-rw-r--r--synapse/storage/_base.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/synapse/storage/_base.py b/synapse/storage/_base.py

index 941c07fce5..537696547c 100644 --- a/synapse/storage/_base.py +++ b/synapse/storage/_base.py
@@ -341,14 +341,11 @@ class SQLBaseStore(object): expiration_ts, ) - self._simple_insert_txn( + self._simple_upsert_txn( txn, "account_validity", - values={ - "user_id": user_id, - "expiration_ts_ms": expiration_ts, - "email_sent": False, - }, + keyvalues={"user_id": user_id, }, + values={"expiration_ts_ms": expiration_ts, "email_sent": False, }, ) def start_profiling(self):