Browse Source

Fixed error with async

Andrew Kane 8 năm trước cách đây
mục cha
commit
aadde04704
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      lib/blazer/run_statement_job.rb

+ 1 - 1
lib/blazer/run_statement_job.rb

@@ -8,7 +8,7 @@ module Blazer
     def perform(result, data_source, statement, options)
       begin
         ActiveRecord::Base.connection_pool.with_connection do
-          data_source.connection_model.connection_pool.with_connection do
+          data_source.adapter.connection_model.connection_pool.with_connection do
             result << RunStatement.new.perform(data_source, statement, options)
           end
         end