Skip to content

Commit

Permalink
Repo.insert(on_conflict: :replace_all, conflict_target: [:id])
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonic committed Dec 15, 2024
1 parent ff28e1a commit 170fec6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/app/user.ex
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,12 @@ defmodule App.User do
def create(attrs) do
%User{}
|> changeset(attrs)
|> Repo.insert()
|> Repo.insert(on_conflict: :replace_all, conflict_target: [:id])
end

# Envar.require_env_file(".env")

def get_org_members_from_api(org_name) do
# dbg(org_name)
token = Envar.get("GH_PERSONAL_ACCESS_TOKEN")

client = Tentacat.Client.new(%{access_token: token})
Expand Down

0 comments on commit 170fec6

Please sign in to comment.