pub async fn refresh_db_rfds(db: &Database, github: &Github) {
    let rfds = get_rfds_from_repo(github).await;

    // Sync rfds.
    for (_, rfd) in rfds {
        let mut new_rfd = rfd.upsert(db).await;

        // Expand the fields in the RFD.
        new_rfd.expand(github).await;

        // Make and update the PDF versions.
        new_rfd.convert_and_upload_pdf(github).await;

        // Update the RFD again.
        // We do this so the expand functions are only one place.
        new_rfd.update(db).await;
    }
}
// Sync the rfds with our database.
Sync the rfds with our database.
Sync the rfds with our database .
pub async fn refresh_db_rfds(db: &Database, github: &Github) {
    let rfds = get_rfds_from_repo(github).await;
    // Sync rfds.
    for (_, rfd) in rfds {
        let mut new_rfd = rfd.upsert(db).await;
        // Expand the fields in the RFD.
        new_rfd.expand(github).await;
        // Make and update the PDF versions.
        new_rfd.convert_and_upload_pdf(github).await;
        // Update the RFD again.
        // We do this so the expand functions are only one place.
        new_rfd.update(db).await;
    }
}
pub async fn refresh_db_rfds ( db : & Database , github : & Github ) { let rfds = get_rfds_from_repo ( github ) . await ; // Sync rfds. for ( _ , rfd ) in rfds { let mut new_rfd = rfd . upsert ( db ) . await ; // Expand the fields in the RFD. new_rfd . expand ( github ) . await ; // Make and update the PDF versions. new_rfd . convert_and_upload_pdf ( github ) . await ; // Update the RFD again. // We do this so the expand functions are only one place. new_rfd . update ( db ) . await ; } }
Sync the rfds with our database.
Sync the rfds with our database .
db
&Database
github
&Github
db
&Database
github
&Github