fix: remove project tasks_count
This commit is contained in:
parent
0e4c0a46c2
commit
2c7bb1b5cd
|
@ -29,7 +29,7 @@ class Traces::ProjectsController < Traces::BaseController
|
|||
page = params[:page].to_i.zero? ? 1 : params[:page].to_i
|
||||
code, data, error = Trace::CheckResultService.call(current_user.trace_token, @project, nil, page, limit)
|
||||
if code == 200
|
||||
@project.update_column(:trace_tasks_count, data[0]["totalsize"]) if data.is_a?(Array) && data.size > 0
|
||||
# @project.update_column(:trace_tasks_count, data[0]["totalsize"]) if data.is_a?(Array) && data.size > 0
|
||||
render :json => {data: data}
|
||||
else
|
||||
render_error("获取检测记录失败 Error:#{error}")
|
||||
|
|
Loading…
Reference in New Issue