summary refs log tree commit diff
path: root/synapse/storage/transactions.py
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/storage/transactions.py')
-rw-r--r--synapse/storage/transactions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/transactions.py b/synapse/storage/transactions.py
index 1a5bb41cb2..c6e00ae3fe 100644
--- a/synapse/storage/transactions.py
+++ b/synapse/storage/transactions.py
@@ -84,14 +84,14 @@ class TransactionStore(SQLBaseStore):
 
     def _set_received_txn_response(self, txn, transaction_id, origin, code,
                                    response_json):
-        self._simple_update_one_txn(
+        self._simple_upsert_txn(
             txn,
             table=ReceivedTransactionsTable.table_name,
             keyvalues={
                 "transaction_id": transaction_id,
                 "origin": origin,
             },
-            updatevalues={
+            values={
                 "response_code": code,
                 "response_json": response_json,
             }