Merge remote-tracking branch 'upstream/pull/2189'
This commit is contained in:
commit
50091893d4
1 changed files with 2 additions and 0 deletions
|
@ -44,6 +44,7 @@ module Api
|
|||
if trace.user == current_user
|
||||
trace.visible = false
|
||||
trace.save!
|
||||
TraceDestroyerJob.perform_later(trace) if Settings.trace_use_job_queue
|
||||
|
||||
head :ok
|
||||
else
|
||||
|
@ -84,6 +85,7 @@ module Api
|
|||
trace = do_create(params[:file], tags, description, visibility)
|
||||
|
||||
if trace.id
|
||||
TraceImporterJob.perform_later(@trace) if Settings.trace_use_job_queue
|
||||
render :plain => trace.id.to_s
|
||||
elsif trace.valid?
|
||||
head :internal_server_error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue