From 407e59eda2c0c11295f3df319bc539b3900e6f3b Mon Sep 17 00:00:00 2001 From: shiyasmohd <shiyasjaseena124@gmail.com> Date: Thu, 26 Dec 2024 07:03:27 +0530 Subject: [PATCH] server: correction in EmptyResponse creation in deployment mutation methods --- server/graphman/src/resolvers/deployment_mutation.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/graphman/src/resolvers/deployment_mutation.rs b/server/graphman/src/resolvers/deployment_mutation.rs index 4d487e60c32..1e264111baf 100644 --- a/server/graphman/src/resolvers/deployment_mutation.rs +++ b/server/graphman/src/resolvers/deployment_mutation.rs @@ -85,14 +85,14 @@ impl DeploymentMutation { pub async fn create(&self, ctx: &Context<'_>, name: String) -> Result<EmptyResponse> { let ctx = GraphmanContext::new(ctx)?; create::run(&ctx, &name)?; - Ok(EmptyResponse::new(None)) + Ok(EmptyResponse::new()) } /// Remove a subgraph pub async fn remove(&self, ctx: &Context<'_>, name: String) -> Result<EmptyResponse> { let ctx = GraphmanContext::new(ctx)?; remove::run(&ctx, &name)?; - Ok(EmptyResponse::new(None)) + Ok(EmptyResponse::new()) } /// Unassign a deployment