pass invite token in properly

This commit is contained in:
2022-07-04 21:16:09 -04:00
parent dce04e4d7f
commit 3adb8c9aae
3 changed files with 7 additions and 7 deletions

View File

@ -106,8 +106,7 @@ defmodule Cannery.Invites do
|> Base.url_encode64()
|> binary_part(0, @invite_token_length)
attrs = attrs |> Map.put("token", token)
%Invite{} |> Invite.create_changeset(user, attrs) |> Repo.insert()
%Invite{} |> Invite.create_changeset(user, token, attrs) |> Repo.insert()
end
@doc """