Always use follower if it's available
This commit is contained in:
parent
212ecc912e
commit
1a3ab7f2a7
|
@ -4,7 +4,7 @@ class Travis::Api::App
|
||||||
module Helpers
|
module Helpers
|
||||||
module DbFollower
|
module DbFollower
|
||||||
def prefer_follower
|
def prefer_follower
|
||||||
if Travis::Features.feature_active?(:api_use_db_follower)
|
if Travis.config.database_follower
|
||||||
Travis::Model.using_follower do
|
Travis::Model.using_follower do
|
||||||
yield
|
yield
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user