fix: remove project tasks_count

This commit is contained in:
yystopf 2022-05-13 14:00:21 +08:00
parent 0e4c0a46c2
commit 2c7bb1b5cd
1 changed files with 1 additions and 1 deletions

View File

@ -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}")