fix create project package api

dev_forum
p31729568 5 years ago
parent 61da612ac2
commit 6440bfabe2

@ -25,7 +25,9 @@ class ProjectPackages::SaveService < ApplicationService
end
ActiveRecord::Base.transaction do
package.assign_attributes(params)
columns = %i[project_package_category_id title content deadline_at
min_price max_price contact_name contact_phone]
package.assign_attributes(params.slice(*columns))
package.save!
# 处理附件

Loading…
Cancel
Save