fix emails

This commit is contained in:
2024-07-28 11:35:45 -04:00
parent 179d67a896
commit 33e4d26a3d
6 changed files with 50 additions and 5 deletions

View File

@ -48,6 +48,10 @@ defmodule Cannery.Fixtures do
def extract_user_token(fun) do
%{args: %{attrs: attrs, email: email_key, user_id: user_id}} = fun.(&"[TOKEN]#{&1}[TOKEN]")
attrs =
attrs
|> Map.new(fn {key, value} -> {Atom.to_string(key), value} end)
email =
email_key
|> Atom.to_string()