Skip to content

Commit

Permalink
Update Created At format
Browse files Browse the repository at this point in the history
  • Loading branch information
arturofigueroabim committed Feb 28, 2024
1 parent 8174d9e commit bd3fa66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ pub async fn check_token_status_request(user_id: String, bridgehead: String, pro

async fn save_tokens_from_beam(mut db: Db, task: TaskRequest<OpalRequest>, token_params: TokenParams, token_name: String) -> Result<()> {
let today = Local::now();
let formatted_date = today.format("%d-%m-%Y").to_string();
let formatted_date = today.format("%d-%m-%Y %H:%M:%S").to_string();

let res = BEAM_CLIENT
.raw_beam_request(Method::GET, &format!("/v1/tasks/{}/results?wait_count={}", task.id, task.to.len()))
Expand Down Expand Up @@ -290,7 +290,7 @@ async fn save_tokens_from_beam(mut db: Db, task: TaskRequest<OpalRequest>, token
last_error = Some(format!("Error: {error}"));
},
OpalResponse::Ok { token } => {
let site_name = result.from.as_ref().split('.').nth(1).expect("Valid app id");
let site_name = result.from.as_ref();//.split('.').nth(1).expect("Valid app id");
let new_token = NewToken {
token_name: &token_name,
token: &token,
Expand Down

0 comments on commit bd3fa66

Please sign in to comment.