Skip to content

Commit 407e59e

Browse files
committed
server: correction in EmptyResponse creation in deployment mutation methods
1 parent 8bdc003 commit 407e59e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/graphman/src/resolvers/deployment_mutation.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,14 @@ impl DeploymentMutation {
8585
pub async fn create(&self, ctx: &Context<'_>, name: String) -> Result<EmptyResponse> {
8686
let ctx = GraphmanContext::new(ctx)?;
8787
create::run(&ctx, &name)?;
88-
Ok(EmptyResponse::new(None))
88+
Ok(EmptyResponse::new())
8989
}
9090

9191
/// Remove a subgraph
9292
pub async fn remove(&self, ctx: &Context<'_>, name: String) -> Result<EmptyResponse> {
9393
let ctx = GraphmanContext::new(ctx)?;
9494
remove::run(&ctx, &name)?;
95-
Ok(EmptyResponse::new(None))
95+
Ok(EmptyResponse::new())
9696
}
9797

9898
/// Unassign a deployment

0 commit comments

Comments
 (0)