diff --git a/model/torrents.go b/model/torrents.go index 8fa2407..11e0e71 100644 --- a/model/torrents.go +++ b/model/torrents.go @@ -24,7 +24,7 @@ func (m *Model) GetTorrentById(torrentId int64) (*Torrent, error) { torrent := new(Torrent) row := m.db.QueryRowx("SELECT * FROM torrents WHERE id = ?", torrentId) - if err := row.StructScan(&torrent); err != nil { + if err := row.StructScan(torrent); err != nil { return torrent, fmt.Errorf("couldn't query torrent: %v", err) }