diff --git a/apps/core/lib/core/clients/console.ex b/apps/core/lib/core/clients/console.ex index fa65229ef..82a80f54b 100644 --- a/apps/core/lib/core/clients/console.ex +++ b/apps/core/lib/core/clients/console.ex @@ -27,7 +27,7 @@ defmodule Core.Clients.Console do @update_svc_q """ mutation Update($id: ID!, $attributes: ServiceUpdateAttributes!) { - updateServiceDeployment(id: $id) { + updateServiceDeployment(id: $id, attributes: $attributes) { id } } diff --git a/apps/core/lib/core/services/cloud/workflow.ex b/apps/core/lib/core/services/cloud/workflow.ex index abc334c72..e1692dfe6 100644 --- a/apps/core/lib/core/services/cloud/workflow.ex +++ b/apps/core/lib/core/services/cloud/workflow.ex @@ -10,10 +10,9 @@ defmodule Core.Services.Cloud.Workflow do def sync(%ConsoleInstance{external_id: id} = instance) when is_binary(id) do instance = Repo.preload(instance, [:cluster, :postgres]) - Console.update_service(console(), %{ - size: instance.size, + Console.update_service(console(), id, %{ configuration: Configuration.build(instance) - }, id) + }) end def sync(_), do: :ok diff --git a/apps/graphql/lib/graphql/schema/cloud.ex b/apps/graphql/lib/graphql/schema/cloud.ex index 3e4a7ff71..6f49f4c21 100644 --- a/apps/graphql/lib/graphql/schema/cloud.ex +++ b/apps/graphql/lib/graphql/schema/cloud.ex @@ -15,7 +15,7 @@ defmodule GraphQl.Schema.Cloud do end input_object :console_instance_update_attributes do - field :size, :console_size + field :size, :console_size field :configuration, :console_configuration_update_attributes end