Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Schedule conversion job after successful create

Oliver Günther5739409d016a
diff --git a/modules/ifc_models/app/services/ifc_models/create_service.rb b/modules/ifc_models/app/services/ifc_models/create_service.rb
index 12add886508..58e84247f95 100644
--- a/modules/ifc_models/app/services/ifc_models/create_service.rb
+++ b/modules/ifc_models/app/services/ifc_models/create_service.rb
@@ -39,6 +39,14 @@ module IFCModels
end
end
+ def after_perform(call)
+ if call.success?
+ IFCConversionJob.perform_later(call.result)
+ end
+
+ call
+ end
+
def instance(_params)
::IFCModels::IFCModel.new
end