|
|
|
@ -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
|
|
|
|
|