allow to delete torrents
This commit is contained in:
@@ -41,3 +41,8 @@ func (m *Model) GetTorrentByGuidAndItemId(guid string, itemId int64) (*Torrent,
|
||||
|
||||
return torrent, nil
|
||||
}
|
||||
|
||||
func (m *Model) DeleteTorrentById(torrentId int64) error {
|
||||
_, err := m.db.Exec("DELETE FROM torrents WHERE id = ?", torrentId)
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user