Content-Length: 238732 | pFad | https://github.com/sebadob/rauthy/commit/e66e4962631620ad762a80181e085d3e477ad8d4

FF Merge pull request #260 from sebadob/ui-fix-latest-version-link · sebadob/rauthy@e66e496 · GitHub
Skip to content

Commit

Permalink
Merge pull request #260 from sebadob/ui-fix-latest-version-link
Browse files Browse the repository at this point in the history
fix latest version link if an update is available
  • Loading branch information
sebadob authored Feb 8, 2024
2 parents 12179c9 + 686b72b commit e66e496
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions rauthy-main/src/schedulers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ pub async fn app_version_check(
let mut last_version_notification = None;

// do a first check shortly after startup to not wait hours on a fresh install
// tokio::time::sleep(Duration::from_secs(10)).await;
// tokio::time::sleep(Duration::from_secs(3)).await;
tokio::time::sleep(Duration::from_secs(120)).await;
check_app_version(&data, &rx_health, &mut last_version_notification).await;

Expand Down Expand Up @@ -636,7 +636,7 @@ async fn check_app_version(
error!("Inserting LatestAppVersion into database: {:?}", err);
}

let this_version = semver::Version::parse(RAUTHY_VERSION).unwrap();
let this_version = Version::parse(RAUTHY_VERSION).unwrap();

if latest_version > this_version && latest_version.pre.is_empty() {
if last_version_notification.as_ref() == Some(&latest_version) {
Expand All @@ -646,17 +646,15 @@ async fn check_app_version(
);
} else {
info!("A new Rauthy App Version is available: {}", latest_version);
let version_url = format!("v{} -> {}", latest_version, url);

if let Err(err) =
LatestAppVersion::upsert(data, latest_version.clone(), version_url.clone())
.await
LatestAppVersion::upsert(data, latest_version.clone(), url.clone()).await
{
error!("Saving LatestAppVersion into DB: {:?}", err);
}

data.tx_events
.send_async(Event::new_rauthy_version(version_url))
.send_async(Event::new_rauthy_version(url))
.await
.unwrap();

Expand Down

0 comments on commit e66e496

Please sign in to comment.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/sebadob/rauthy/commit/e66e4962631620ad762a80181e085d3e477ad8d4

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy