mirror of
https://github.com/matrix-org/sliding-sync.git
synced 2025-03-10 13:37:11 +00:00
Test double transact
This commit is contained in:
parent
ea805f7a1c
commit
2e928284b3
@ -75,7 +75,8 @@ func (s *SnapshotTable) Insert(txn *sqlx.Tx, row *SnapshotRow) error {
|
||||
if row.OtherEvents == nil {
|
||||
row.OtherEvents = []int64{}
|
||||
}
|
||||
err := txn.QueryRow(
|
||||
// OH NO, NOT USING THE TXN!
|
||||
err := s.db.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