Skip to content

Commit 302e38b

Browse files
committed
fix: update token retrieval method in init_preview function
- Changed token retrieval in init_preview from TokenPool.get_token() to Algora.Admin.token!().
1 parent 403a3cb commit 302e38b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/algora/organizations/organizations.ex

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ defmodule Algora.Organizations do
33
import Ecto.Query
44

55
alias Algora.Accounts.User
6-
alias Algora.Github.TokenPool
76
alias Algora.Organizations.Member
87
alias Algora.Organizations.Org
98
alias Algora.Repo
@@ -242,7 +241,7 @@ defmodule Algora.Organizations do
242241
end
243242

244243
def init_preview(repo_owner, repo_name) do
245-
token = TokenPool.get_token()
244+
token = Algora.Admin.token!()
246245

247246
{:ok, repo} = Workspace.ensure_repository(token, repo_owner, repo_name)
248247
{:ok, owner} = Workspace.ensure_user(token, repo_owner)

0 commit comments

Comments
 (0)