mirror of
https://github.com/System-End/theseus.git
synced 2026-04-20 00:35:18 +00:00
Use HCB_API_BASE env var instead of credentials
This commit is contained in:
parent
faa2c4644c
commit
c6458c3bd7
2 changed files with 2 additions and 2 deletions
|
|
@ -45,7 +45,7 @@ class HCB::OauthConnectionsController < ApplicationController
|
|||
end
|
||||
|
||||
def hcb_api_base
|
||||
Rails.application.credentials.dig(:hcb, :api_base) || "https://hcb.hackclub.com"
|
||||
ENV.fetch("HCB_API_BASE", "https://hcb.hackclub.com")
|
||||
end
|
||||
|
||||
def hcb_oauth_authorize_url
|
||||
|
|
|
|||
|
|
@ -59,6 +59,6 @@ class HCB::OauthConnection < ApplicationRecord
|
|||
private
|
||||
|
||||
def hcb_api_base
|
||||
Rails.application.credentials.dig(:hcb, :api_base) || "https://hcb.hackclub.com"
|
||||
ENV.fetch("HCB_API_BASE", "https://hcb.hackclub.com")
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue