remove unnecessary txn for SelectPeeks

This commit is contained in:
Matthew Hodgson 2020-09-01 00:24:23 +03:00
parent e5899843ea
commit 0bb2c2c418
3 changed files with 6 additions and 6 deletions

View file

@ -136,9 +136,9 @@ func (s *peekStatements) DeletePeeks(
}
func (s *peekStatements) SelectPeeks(
ctx context.Context, txn *sql.Tx, userID, deviceID string,
ctx context.Context, userID, deviceID string,
) (peeks []types.Peek, err error) {
rows, err := sqlutil.TxStmt(txn, s.selectPeeksStmt).QueryContext(ctx, userID, deviceID)
rows, err := s.selectPeeksStmt.QueryContext(ctx, userID, deviceID)
if err != nil {
return
}