Use _simple_upsert

This commit is contained in:
Erik Johnston 2015-03-24 16:17:39 +00:00
parent 6e7131f02f
commit 9115421ace
2 changed files with 7 additions and 5 deletions

View file

@ -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,
}