Browse Source

change project_score

tags/v1
sylor_huang@126.com 6 years ago
parent
commit
e13e9f049d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/controllers/sync_forge_controller.rb

+ 1
- 1
app/controllers/sync_forge_controller.rb View File

@@ -26,7 +26,7 @@ class SyncForgeController < ApplicationController
if sync_params[:project_score].present?
Rails.logger.info("=================sync_params_test:#{sync_params[:project_score].merge(project_id: project.id)}========")

project_score = Project.new(project_id: project.id)
project_score = ProjectScore.new(project_id: project.id)
project_score.save
project_score.update_columns(sync_params[:project_score])
# new_project_score = ProjectScore.create!( sync_params[:project_score].merge(project_id: project.id))


Loading…
Cancel
Save