Albirew/nyaa-pantsu
Albirew
/
nyaa-pantsu
Archivé
1
0
Bifurcation 0

Update report.go

Cette révision appartient à :
kilo 2017-10-29 05:31:16 +01:00 révisé par GitHub
Parent 90c6e8726c
révision 24034f3e92
Signature inconnue de Forgejo
ID de la clé GPG: 4AEE18F83AFDEB23
1 fichiers modifiés avec 2 ajouts et 5 suppressions

Voir le fichier

@ -61,9 +61,6 @@ func TorrentReportsToJSON(reports []TorrentReport) []TorrentReportJSON {
}
// Delete : Delete torrent report
func (report *TorrentReport) Delete(definitely bool) (int, error) {
if definitely {
return 0, ORM.Unscoped().Delete(report).Error
}
return http.StatusOK, nil
func (report *TorrentReport) Delete() (int, error) {
return http.StatusOK, ORM.Unscoped().Delete(report).Error
}