Fix modpack env field being required (#270)
This commit is contained in:
parent
9e9d6e45b4
commit
b2ef4e9619
@ -467,8 +467,8 @@ impl Version {
|
|||||||
",
|
",
|
||||||
id as VersionId,
|
id as VersionId,
|
||||||
)
|
)
|
||||||
.execute(&mut *transaction)
|
.execute(&mut *transaction)
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
// delete version
|
// delete version
|
||||||
|
|
||||||
|
|||||||
@ -27,7 +27,7 @@ pub struct PackFormat<'a> {
|
|||||||
pub struct PackFile<'a> {
|
pub struct PackFile<'a> {
|
||||||
pub path: &'a str,
|
pub path: &'a str,
|
||||||
pub hashes: std::collections::HashMap<FileHash, &'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"))]
|
#[validate(custom(function = "validate_download_url"))]
|
||||||
pub downloads: Vec<&'a str>,
|
pub downloads: Vec<&'a str>,
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user