Allow setting primary file when creating version (#304)

Co-authored-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
This commit is contained in:
BasiqueEvangelist
2022-02-21 05:44:59 +03:00
committed by GitHub
parent c0c80c0fdf
commit 3ee144459f
4 changed files with 29 additions and 21 deletions

View File

@@ -507,7 +507,8 @@ pub async fn project_create_inner(
version_data.loaders.clone(),
version_data.game_versions.clone(),
all_game_versions.clone(),
false,
version_data.primary_file.is_some(),
version_data.primary_file.as_deref() == Some(name),
&mut transaction,
)
.await?;