mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-21 05:43:09 -06:00
Fix transaction to InsertTransaction
This commit is contained in:
parent
b24747b305
commit
b4e0697e0f
|
|
@ -383,7 +383,7 @@ func (d *Database) StoreEvent(
|
|||
err = d.Writer.Do(d.DB, nil, func(txn *sql.Tx) error {
|
||||
if txnAndSessionID != nil {
|
||||
if err = d.TransactionsTable.InsertTransaction(
|
||||
ctx, nil, txnAndSessionID.TransactionID,
|
||||
ctx, txn, txnAndSessionID.TransactionID,
|
||||
txnAndSessionID.SessionID, event.Sender(), event.EventID(),
|
||||
); err != nil {
|
||||
return fmt.Errorf("d.TransactionsTable.InsertTransaction: %w", err)
|
||||
|
|
|
|||
Loading…
Reference in a new issue