Skip to content

Commit

Permalink
server: correction in EmptyResponse creation in deployment mutation m…
Browse files Browse the repository at this point in the history
…ethods
  • Loading branch information
shiyasmohd committed Dec 26, 2024
1 parent 8bdc003 commit 407e59e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/graphman/src/resolvers/deployment_mutation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 407e59e

Please sign in to comment.