Refactoring of Actors context
This commit is contained in:
@@ -15,7 +15,7 @@ defmodule Mix.Tasks.Mobilizon.CreateBot do
|
||||
Mix.Task.run("app.start")
|
||||
|
||||
with {:ok, %User{} = user} <- Users.get_user_by_email(email, true),
|
||||
actor <- Actors.register_bot_account(%{name: name, summary: summary}),
|
||||
actor <- Actors.register_bot(%{name: name, summary: summary}),
|
||||
{:ok, %Bot{} = bot} <-
|
||||
Actors.create_bot(%{
|
||||
"type" => type,
|
||||
|
||||
Reference in New Issue
Block a user