mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-10-04 17:10:43 -04:00
Update BaseBackgroundHelper.rb
This commit is contained in:
1 parent
b64d91108e
commit
4f333c9b94
1 file changed
+2
-2
@@ -10,7 +10,7 @@
|
||||
module BaseBackgroundHelper
|
||||
|
||||
# abstact methods to be overriden
|
||||
def run; raise "run method is missing"; end
|
||||
def run (customer); raise "run method is missing"; end
|
||||
def success_path; raise "success_path is missing"; end
|
||||
def error_path; raise "error_path is missing"; end
|
||||
|
||||
@@ -19,7 +19,7 @@ module BaseBackgroundHelper
|
||||
job = Job.find_by_id(args[:job_id])
|
||||
|
||||
# Call the abstact method passing the service
|
||||
run(Qbo.get_base(args[:type]).service, :id)
|
||||
run(Qbo.get_base(args[:type]).service.fetch_by_id(args[:id]))
|
||||
|
||||
job.change_status("succes")
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user