init latest_aur_version and make it non option

This commit is contained in:
2024-01-02 19:56:39 +01:00
parent 80e2299dc8
commit 5a356e65a7
4 changed files with 9 additions and 8 deletions

View File

@@ -46,7 +46,7 @@ async fn aur_check_versions(db: DatabaseConnection) -> anyhow::Result<()> {
Some(result) => {
let mut package: packages::ActiveModel = package.into();
package.latest_aur_version = Set(Some(result.version.clone()));
package.latest_aur_version = Set(result.version.clone());
let _ = package.update(&db).await;
}
}