Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

Commit

Permalink
Do not regenerate short urls
Browse files Browse the repository at this point in the history
  • Loading branch information
augustuswm committed Aug 30, 2024
1 parent 10f526d commit d2fb869
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
1 change: 0 additions & 1 deletion cio/src/shorturls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,6 @@ pub async fn refresh_shorturls(db: &Database, company: &Company) -> Result<()> {
let out_repos = vec![company.shorturl_repo()];

generate_shorturls_for_repos(db, &github, company, &provider, &out_repos[..]).await?;
generate_shorturls_for_rfds(db, &github, company, &provider, &out_repos[..]).await?;
generate_shorturls_for_configs_links(db, &github, company, &provider, &out_repos[..]).await?;

Ok(())
Expand Down
16 changes: 1 addition & 15 deletions webhooky/src/handlers_github/rfd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -468,21 +468,7 @@ impl RFDUpdateAction for UpdatePDFs {
pub struct GenerateShortUrls;

impl GenerateShortUrls {
pub async fn generate(api_context: &Context, github: &octorust::Client) -> Result<()> {
let out_repos = vec![api_context.company.shorturl_repo()];

// Create all the shorturls for the RFD if we need to, this would be on added files, only.
generate_shorturls_for_rfds(
&api_context.db,
github,
&api_context.company,
&api_context.company.authenticate_dns_providers().await?,
&out_repos,
)
.await?;

info!("[SUCCESS]: updated shorturls for the rfds");

pub async fn generate(_api_context: &Context, _github: &octorust::Client) -> Result<()> {
Ok(())
}
}
Expand Down

0 comments on commit d2fb869

Please sign in to comment.