Skip to content

Commit

Permalink
fix: join
Browse files Browse the repository at this point in the history
  • Loading branch information
MatejVukosav committed Dec 20, 2024
1 parent 4a934d7 commit d777761
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions crates/meroctl/src/cli/context/invite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,8 @@ impl InviteCommand {

environment.output.write(&response);

let invitation_payload = response.data;

let invitation_payload = invitation_payload
let invitation_payload = response
.data
.ok_or_else(|| eyre::eyre!("No invitation payload found in the response"))?;

Ok(invitation_payload)
Expand Down
2 changes: 1 addition & 1 deletion crates/meroctl/src/cli/context/join.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ impl Report for JoinContextResponse {

impl JoinCommand {
pub async fn run(self, environment: &Environment) -> EyreResult<()> {
let _ignored = self.join(environment);
let _ignored = self.join(environment).await?;
Ok(())
}

Expand Down

0 comments on commit d777761

Please sign in to comment.