Browse Source

fix: create project trend when status is closed

tags/v4.0.0^2
yystopf 4 years ago
parent
commit
2dc79052c2
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      app/controllers/issues_controller.rb

+ 2
- 0
app/controllers/issues_controller.rb View File

@@ -149,6 +149,8 @@ class IssuesController < ApplicationController
end

@issue.project_trends.create(user_id: current_user.id, project_id: @project.id, action_type: "create")
@issue.project_trends.create(user_id: current_user.id, project_id: @project.id, action_type: ProjectTrend::CLOSE) if params[:status_id].to_i == 5


Rails.logger.info "[ATME] maybe to at such users: #{@atme_receivers.pluck(:login)}"
AtmeService.call(current_user, @atme_receivers, @issue) if @atme_receivers.size > 0


Loading…
Cancel
Save