Skip to content

Commit

Permalink
fix: 🐛 mix format
Browse files Browse the repository at this point in the history
  • Loading branch information
karlosmid committed Aug 28, 2024
1 parent ed0ffc9 commit 664e204
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/plausible/migration_utils.ex
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ defmodule Plausible.MigrationUtils do
end

def cluster_name do
case Plausible.IngestRepo.query("SELECT cluster FROM system.clusters where cluster != 'default' limit 1;") do
case Plausible.IngestRepo.query(
"SELECT cluster FROM system.clusters where cluster != 'default' limit 1;"
) do
{:ok, %{rows: [[cluster]]}} -> cluster
{:ok, _} -> raise "No cluster defined."
{:error, _} -> raise "Cluster not found"
Expand Down

0 comments on commit 664e204

Please sign in to comment.