mirror of
https://github.com/matrix-org/sliding-sync.git
synced 2025-03-10 13:37:11 +00:00
Revert "Test double transact"
This reverts commit 2e928284b3f931e3e293781878df594b40db711f.
This commit is contained in:
parent
2e928284b3
commit
0fa136f32d
@ -75,8 +75,7 @@ func (s *SnapshotTable) Insert(txn *sqlx.Tx, row *SnapshotRow) error {
|
||||
if row.OtherEvents == nil {
|
||||
row.OtherEvents = []int64{}
|
||||
}
|
||||
// OH NO, NOT USING THE TXN!
|
||||
err := s.db.QueryRow(
|
||||
err := txn.QueryRow(
|
||||
`INSERT INTO syncv3_snapshots(room_id, events, membership_events) VALUES($1, $2, $3) RETURNING snapshot_id`,
|
||||
row.RoomID, row.OtherEvents, row.MembershipEvents,
|
||||
).Scan(&id)
|
||||
|
Loading…
x
Reference in New Issue
Block a user