Skip to content

Commit

Permalink
Merge branch 'main' into fix-invalid-accounts-generated
Browse files Browse the repository at this point in the history
  • Loading branch information
kariy authored Nov 19, 2024
2 parents 7e9fa2a + 89de0ab commit 123bac5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ resolver = "2"
members = ["cli", "slot"]

[workspace.package]
version = "0.24.0"
version = "0.25.0"
license-file = "LICENSE"
repository = "https://github.com/cartridge-gg/slot/"
edition = "2021"
Expand Down
14 changes: 8 additions & 6 deletions cli/src/command/deployments/update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ use torii_cli::args::ToriiArgsConfig;
pub struct UpdateArgs {
#[arg(help = "The name of the project.")]
pub project: String,
#[arg(short, long, default_value = "basic")]

#[arg(short, long)]
#[arg(value_name = "tier")]
#[arg(help = "Deployment tier.")]
pub tier: Tier,
pub tier: Option<Tier>,

#[command(subcommand)]
update_commands: UpdateServiceCommands,
Expand Down Expand Up @@ -79,10 +80,11 @@ impl UpdateArgs {
};

let tier = match &self.tier {
Tier::Basic => DeploymentTier::basic,
Tier::Common => DeploymentTier::common,
Tier::Rare => DeploymentTier::rare,
Tier::Epic => DeploymentTier::epic,
None => None,
Some(Tier::Basic) => Some(DeploymentTier::basic),
Some(Tier::Common) => Some(DeploymentTier::common),
Some(Tier::Rare) => Some(DeploymentTier::rare),
Some(Tier::Epic) => Some(DeploymentTier::epic),
};

let request_body = UpdateDeployment::build_query(Variables {
Expand Down
2 changes: 1 addition & 1 deletion slot/src/graphql/deployments/update.graphql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
mutation UpdateDeployment(
$project: String!
$service: UpdateServiceInput!
$tier: DeploymentTier!
$tier: DeploymentTier
$wait: Boolean
) {
updateDeployment(
Expand Down

0 comments on commit 123bac5

Please sign in to comment.