Fix redirect after deletion.

This commit is contained in:
codevictory
2021-04-22 21:42:01 +03:00
parent cebe145c32
commit fff627fb53
2 changed files with 2 additions and 2 deletions

View File

@@ -62,6 +62,6 @@ defmodule RunosaariWeb.PerformanceController do
conn conn
|> put_flash(:info, "Performance deleted successfully.") |> put_flash(:info, "Performance deleted successfully.")
|> redirect(to: Routes.performance_path(conn, :index)) |> redirect(to: Routes.admin_performance_path(conn, :admin))
end end
end end

View File

@@ -62,6 +62,6 @@ defmodule RunosaariWeb.PerformerController do
conn conn
|> put_flash(:info, "Performer deleted successfully.") |> put_flash(:info, "Performer deleted successfully.")
|> redirect(to: Routes.performer_path(conn, :index)) |> redirect(to: Routes.admin_performer_path(conn, :admin))
end end
end end