Fix modpack env field being required (#270)

This commit is contained in:
Geometrically 2021-12-14 22:25:46 -07:00 committed by GitHub
parent 9e9d6e45b4
commit b2ef4e9619
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -467,8 +467,8 @@ impl Version {
",
id as VersionId,
)
.execute(&mut *transaction)
.await?;
.execute(&mut *transaction)
.await?;
// delete version

View File

@ -27,7 +27,7 @@ pub struct PackFormat<'a> {
pub struct PackFile<'a> {
pub path: &'a str,
pub hashes: std::collections::HashMap<FileHash, &'a str>,
pub env: std::collections::HashMap<EnvType, SideType>,
pub env: Option<std::collections::HashMap<EnvType, SideType>>,
#[validate(custom(function = "validate_download_url"))]
pub downloads: Vec<&'a str>,
}