diff --git a/apps/boruta_federation/lib/boruta_federation/federation_entities.ex b/apps/boruta_federation/lib/boruta_federation/federation_entities.ex index 8b1c42df..e1a18aa8 100644 --- a/apps/boruta_federation/lib/boruta_federation/federation_entities.ex +++ b/apps/boruta_federation/lib/boruta_federation/federation_entities.ex @@ -57,7 +57,7 @@ defmodule BorutaFederation.FederationEntities do {:ok, client_federation_entity :: ClientFederationEntity.t() | nil} | {:error, changeset :: Ecto.Changeset.t()} def upsert_client_federation_entity(client_id, nil) do - with {1, _} <- + with {_, _} <- Repo.delete_all(from cfe in ClientFederationEntity, where: cfe.client_id == ^client_id) do {:ok, nil} end