From 781bab98b25e8e891b3869b224010bf41b79f0fe Mon Sep 17 00:00:00 2001 From: Paul Ostazeski Date: Tue, 11 Jul 2023 10:39:27 -0400 Subject: [PATCH] Remove error from mix task `triplex.migrations` --- lib/mix/tasks/triplex.migrations.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)