Skip to content

Commit

Permalink
fix: revert back changes for local
Browse files Browse the repository at this point in the history
  • Loading branch information
tobi-bams committed Nov 20, 2024
1 parent d34c562 commit 138bdef
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions app/src/api/cmd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ if (IS_DEV) {
const mode = import.meta.env.MODE;

if (mode === "super") {
// root = "https://app.superadmin.sphinx.chat/api";
root = "http://localhost:8005/api";
root = "https://app.superadmin.sphinx.chat/api";
// root = "http://localhost:8005/api";
}

type CmdType =
Expand Down
1 change: 0 additions & 1 deletion src/bin/super/cmd.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use serde::{Deserialize, Serialize};
use serde_json::Value;
use sphinx_swarm::cmd::ChangeUserPasswordBySuperAdminInfo;

#[derive(Serialize, Deserialize, Debug, Clone)]
#[serde(tag = "type", content = "data")]
Expand Down
10 changes: 5 additions & 5 deletions src/bin/super/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ use sphinx_swarm::utils::{getenv, make_reqwest_client};

use crate::aws_util::make_aws_client;
use crate::cmd::{
AccessNodesInfo, AddSwarmResponse, ChangeSwarmChildPasswordData, ChangeSwarmChildPasswordInfo,
ChangeUserPasswordBySuperAdminRequest, CreateEc2InstanceInfo, GetInstanceTypeByInstanceId,
GetInstanceTypeRes, LoginResponse, SuperSwarmResponse, UpdateInstanceDetails,
AccessNodesInfo, AddSwarmResponse, ChangeUserPasswordBySuperAdminRequest,
CreateEc2InstanceInfo, GetInstanceTypeByInstanceId, GetInstanceTypeRes, LoginResponse,
SuperSwarmResponse, UpdateInstanceDetails,
};
use crate::ec2::get_swarms_by_tag;
use crate::route53::add_domain_name_to_route53;
Expand Down Expand Up @@ -175,9 +175,9 @@ pub fn get_child_base_route(host: String) -> Result<String, Error> {
return Err(anyhow!("child swarm default host not provided"));
};

// return Ok(format!("https://app.{}/api", host));
return Ok(format!("https://app.{}/api", host));

return Ok(format!("http://{}/api", host));
// return Ok(format!("http://{}/api", host));
}

pub async fn get_child_swarm_containers(
Expand Down

0 comments on commit 138bdef

Please sign in to comment.