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

api: importer support for ref-id

parent fb5a574c
No related branches found
No related tags found
No related merge requests found
......@@ -92,8 +92,7 @@ func (api *API) CreateFileForShow(c *gin.Context) {
// From here on, in case of an error we should either delete the newly created
// file or return the file object as ErrorResponse.Detail so the API user can deal with the problem.
refID := "" // TODO: get this from query paremeter
job, err := api.importer.CreateJob(showID, file.ID, srcURI, sess.Username, refID)
job, err := api.importer.CreateJob(showID, file.ID, srcURI, sess.Username, c.Query("ref-id"))
if err != nil {
goto create_file_response
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment