Skip to content
Snippets Groups Projects
Commit c41bdf2c authored by Christian Pointner's avatar Christian Pointner
Browse files

add some todos

parent 7b06a1d8
No related branches found
No related tags found
No related merge requests found
......@@ -135,6 +135,7 @@ func (api *API) DeleteFileOfGroup() http.Handler {
sendWebResponse(w, http.StatusBadRequest, ErrorResponse{Error: "invalid file-id: " + err.Error()})
return
}
// TODO: delete import if there is one
if err = api.store.DeleteFile(vars["group-id"], id); err != nil {
sendError(w, err)
return
......
......@@ -52,6 +52,7 @@ func (api *API) ReadImportOfFile() http.Handler {
}
job, err := api.importer.GetJob(vars["group-id"], id)
if err != nil {
// TODO: return import info from store if err == ErrNotFound
sendError(w, err)
return
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment