diff --git a/lib/mix/tasks/triplex.migrations.ex b/lib/mix/tasks/triplex.migrations.ex index ab5ed27..b90ee13 100644 --- a/lib/mix/tasks/triplex.migrations.ex +++ b/lib/mix/tasks/triplex.migrations.ex @@ -42,12 +42,12 @@ defmodule Mix.Tasks.Triplex.Migrations do Enum.map(repos, fn repo -> Ecto.ensure_repo(repo, args) MTriplex.ensure_tenant_migrations_path(repo) - {:ok, pid, _} = MTriplex.ensure_started(repo, all: true) + {:ok, _pid, _} = MTriplex.ensure_started(repo, all: true) migration_lists = migrations.(repo, Triplex.migrations_path(repo)) tenants_state = tenants_state(repo, migration_lists) - pid && repo.stop(pid) + repo.stop() tenants_state end)