We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab28594 commit 85155b4Copy full SHA for 85155b4
lib/algora/admin/admin.ex
@@ -25,6 +25,15 @@ defmodule Algora.Admin do
25
26
require Logger
27
28
+ def sync_user(provider_login) do
29
+ with {:ok, data} <- Github.get_user_by_username(token(), provider_login),
30
+ {:ok, user} <- Workspace.ensure_user(token(), data["login"]) do
31
+ user
32
+ |> change(%{display_name: data["name"], location: data["location"]})
33
+ |> Repo.update()
34
+ end
35
36
+
37
def backfill_charge(id) do
38
with {:ok, tx} <- Repo.fetch_by(Transaction, id: id),
39
{:ok,
0 commit comments