mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-08-02 06:12:45 +00:00
re-add txn to SelectPeeks
This commit is contained in:
parent
75b91ac9e5
commit
b6cc4417cc
3 changed files with 6 additions and 6 deletions
|
@ -136,9 +136,9 @@ func (s *peekStatements) DeletePeeks(
|
|||
}
|
||||
|
||||
func (s *peekStatements) SelectPeeks(
|
||||
ctx context.Context, userID, deviceID string,
|
||||
ctx context.Context, txn *sql.Tx, userID, deviceID string,
|
||||
) (peeks []types.Peek, err error) {
|
||||
rows, err := s.selectPeeksStmt.QueryContext(ctx, userID, deviceID)
|
||||
rows, err := sqlutil.TxStmt(txn, s.selectPeeksStmt).QueryContext(ctx, userID, deviceID)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue