Browse Source

fix: reload task need increment tasks count

pull/313/head
yystopf 4 years ago
parent
commit
9b3336c0a0
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      app/controllers/traces/projects_controller.rb

+ 1
- 0
app/controllers/traces/projects_controller.rb View File

@@ -41,6 +41,7 @@ class Traces::ProjectsController < Traces::BaseController
return render_error("project_id错误") if params[:project_id].blank?
code, data, error = Trace::ReloadCheckService.call(current_user.trace_token, params[:project_id])
if code == 200
@project.increment!(:trace_tasks_count, 1)
render_ok
else
render_error("重新检测失败 Error:#{error}")


Loading…
Cancel
Save