Skip to content

Commit

Permalink
OTWO-6238 KBUpdater is using SecondBase connection (#1520)
Browse files Browse the repository at this point in the history
Replace SecondBase with ActiveRecord
  • Loading branch information
PDegenPortnoy committed Oct 22, 2020
1 parent cf71290 commit c2d2c76
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/models/knowledge_base_status.rb
Expand Up @@ -152,9 +152,9 @@ def analysis_committer_data(analysis)
def get_repository_id(code_location_id)
return unless code_location_id

SecondBase::Base.connection
.execute("select repository_id from code_locations where id= #{code_location_id}")
.values[0].try(:first).to_i
ActiveRecord::Base.connection
.execute("select repository_id from code_locations where id= #{code_location_id}")
.values[0].try(:first).to_i
end

def get_forge_match(forge_match)
Expand Down

0 comments on commit c2d2c76

Please sign in to comment.