From 664e2042cc7cdcc0b6c79ad56668fa6853b9cc36 Mon Sep 17 00:00:00 2001 From: "karlo.smid" Date: Wed, 28 Aug 2024 10:48:52 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20mix=20format?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/plausible/migration_utils.ex | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/plausible/migration_utils.ex b/lib/plausible/migration_utils.ex index c61a5ac489e5..786705602adc 100644 --- a/lib/plausible/migration_utils.ex +++ b/lib/plausible/migration_utils.ex @@ -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"