project package create/update api response add id column

project_pack
p31729568 6 years ago
parent def32478e8
commit ec8cf98f17

@ -112,7 +112,7 @@ module Mobile
package = current_user.project_packages.new
::ProjectPackages::SaveService.new(package, symbolize_params).call
package.increment_visit_count!
render_ok
render_ok(id: package.id)
rescue ::ProjectPackages::SaveService::Error => ex
render_error(ex.message)
end
@ -142,7 +142,7 @@ module Mobile
::ProjectPackages::SaveService.new(package, symbolize_params).call
package.increment_visit_count!
render_ok
render_ok(id: package.id)
rescue ::ProjectPackages::SaveService::Error => ex
render_error(ex.message)
end

Loading…
Cancel
Save