mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 11:16:07 -04:00
Use _simple_upsert
This commit is contained in:
parent
6e7131f02f
commit
9115421ace
2 changed files with 7 additions and 5 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue