parent
126933fb5e
commit
ad99a43f92
|
@ -285,10 +285,6 @@ func main() {
|
|||
return
|
||||
}
|
||||
file, err := m.GetFile(uint(fileID))
|
||||
if errors.Is(err, gorm.ErrRecordNotFound) {
|
||||
c.JSON(http.StatusNotFound, err.Error())
|
||||
return
|
||||
}
|
||||
if err != nil {
|
||||
c.JSON(http.StatusInternalServerError, err.Error())
|
||||
return
|
||||
|
@ -314,10 +310,6 @@ func main() {
|
|||
return
|
||||
}
|
||||
track, err := m.GetTrackByArtistAndTitle(form.Artist, form.Title, false)
|
||||
if errors.Is(err, gorm.ErrRecordNotFound) {
|
||||
c.JSON(http.StatusNotFound, err.Error())
|
||||
return
|
||||
}
|
||||
if err != nil {
|
||||
c.JSON(http.StatusInternalServerError, err.Error())
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue