26 lines
492 B
Elixir
26 lines
492 B
Elixir
defmodule BackendWeb.AdminView do
|
|
use BackendWeb, :view
|
|
import Backend.Util
|
|
require Logger
|
|
|
|
def render("show.json", %{instance: instance}) do
|
|
Logger.info(inspect(instance))
|
|
|
|
%{
|
|
domain: domain,
|
|
opt_in: opt_in,
|
|
opt_out: opt_out,
|
|
user_count: user_count,
|
|
status_count: status_count
|
|
} = instance
|
|
|
|
%{
|
|
domain: domain,
|
|
optIn: opt_in,
|
|
optOut: opt_out,
|
|
userCount: user_count,
|
|
statusCount: status_count
|
|
}
|
|
end
|
|
end
|