mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-01-11 21:19:28 -05:00
Fix bugs in transactions storage
This commit is contained in:
parent
5a447098dd
commit
1aa44939fc
@ -143,7 +143,8 @@ class TransactionStore(SQLBaseStore):
|
|||||||
txn,
|
txn,
|
||||||
table=SentTransactions.table_name,
|
table=SentTransactions.table_name,
|
||||||
values={
|
values={
|
||||||
"transaction_id": self.get_next_stream_id(),
|
"id": self.get_next_stream_id(),
|
||||||
|
"transaction_id": transaction_id,
|
||||||
"destination": destination,
|
"destination": destination,
|
||||||
"ts": origin_server_ts,
|
"ts": origin_server_ts,
|
||||||
"response_code": 0,
|
"response_code": 0,
|
||||||
@ -240,7 +241,7 @@ class TransactionStore(SQLBaseStore):
|
|||||||
allow_none=True,
|
allow_none=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
if result["retry_last_ts"] > 0:
|
if result and result["retry_last_ts"] > 0:
|
||||||
return result
|
return result
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
Loading…
Reference in New Issue
Block a user