mediaapi/writers/download: Update TODO comment that is done

This commit is contained in:
Robert Swain 2017-05-11 09:19:56 +02:00
parent 9c29a31e7e
commit da28e4a3e2

View file

@ -166,7 +166,7 @@ func Download(w http.ResponseWriter, req *http.Request, origin types.ServerName,
respondFromRemoteFile(w, logger, r.MediaMetadata, cfg, db, activeRemoteRequests)
} else {
// TODO: If we do not have a record and the origin is local, or if we have another error from the database, the file is not found
// If we do not have a record and the origin is local, or if we have another error from the database, the file is not found
jsonErrorResponse(w, util.JSONResponse{
Code: 404,
JSON: jsonerror.NotFound(fmt.Sprintf("File with media ID %q does not exist", r.MediaMetadata.MediaID)),