diff --git a/src/commands/delete.rs b/src/commands/delete.rs index 826a068..358e46b 100644 --- a/src/commands/delete.rs +++ b/src/commands/delete.rs @@ -69,11 +69,12 @@ pub async fn command(args: Args) -> Result<()> { let spinner = create_spinner_if(!args.json, "Deleting project...".into()); - let vars = mutations::project_delete::Variables { + let vars = mutations::project_schedule_delete::Variables { id: project_id.clone(), }; - post_graphql::(&client, &configs.get_backboard(), vars).await?; + post_graphql::(&client, &configs.get_backboard(), vars) + .await?; if args.json { println!("{}", serde_json::json!({"id": project_id})); diff --git a/src/gql/mutations/mod.rs b/src/gql/mutations/mod.rs index 7c5b5aa..335e558 100644 --- a/src/gql/mutations/mod.rs +++ b/src/gql/mutations/mod.rs @@ -36,10 +36,10 @@ pub struct ProjectCreate; #[derive(GraphQLQuery)] #[graphql( schema_path = "src/gql/schema.json", - query_path = "src/gql/mutations/strings/ProjectDelete.graphql", + query_path = "src/gql/mutations/strings/ProjectScheduleDelete.graphql", response_derives = "Debug, Serialize, Clone" )] -pub struct ProjectDelete; +pub struct ProjectScheduleDelete; #[derive(GraphQLQuery)] #[graphql( diff --git a/src/gql/mutations/strings/ProjectDelete.graphql b/src/gql/mutations/strings/ProjectDelete.graphql deleted file mode 100644 index 995091e..0000000 --- a/src/gql/mutations/strings/ProjectDelete.graphql +++ /dev/null @@ -1,3 +0,0 @@ -mutation ProjectDelete($id: String!) { - projectDelete(id: $id) -} diff --git a/src/gql/mutations/strings/ProjectScheduleDelete.graphql b/src/gql/mutations/strings/ProjectScheduleDelete.graphql new file mode 100644 index 0000000..a777930 --- /dev/null +++ b/src/gql/mutations/strings/ProjectScheduleDelete.graphql @@ -0,0 +1,3 @@ +mutation ProjectScheduleDelete($id: String!) { + projectScheduleDelete(id: $id) +}