diff --git a/models/reports/create.go b/models/reports/create.go index fc1dec68..2c094390 100644 --- a/models/reports/create.go +++ b/models/reports/create.go @@ -7,9 +7,10 @@ import ( "errors" ) -func Create(desc string, torrent *models.Torrent, user *models.User) (*models.TorrentReport, error) { +func Create(desc string, message string, torrent *models.Torrent, user *models.User) (*models.TorrentReport, error) { report := &models.TorrentReport{ Description: desc, + Message: message, TorrentID: torrent.ID, UserID: user.ID, CreatedAt: time.Now(),