Add Embedded dependency type (#380)

* Add Embedded dependency type

I couldn't find any SQL tables or anything for dependency types, so I'm going to assume there aren't any

* Make modpacks use Embedded instead of Required

Co-authored-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
This commit is contained in:
Emma Cypress
2022-06-26 02:16:46 +00:00
committed by GitHub
parent 932b0ccf24
commit 16e7194dfe
2 changed files with 6 additions and 3 deletions

View File

@@ -734,7 +734,7 @@ pub async fn upload_file(
project_id: Some(models::ProjectId(project_id)),
version_id: Some(models::VersionId(version_id)),
file_name: None,
dependency_type: DependencyType::Required
dependency_type: DependencyType::Embedded
.to_string(),
});
}
@@ -750,7 +750,7 @@ pub async fn upload_file(
.unwrap_or(first_download)
.to_string(),
),
dependency_type: DependencyType::Required.to_string(),
dependency_type: DependencyType::Embedded.to_string(),
});
}
}
@@ -761,7 +761,7 @@ pub async fn upload_file(
project_id: None,
version_id: None,
file_name: Some(file.to_string()),
dependency_type: DependencyType::Required.to_string(),
dependency_type: DependencyType::Embedded.to_string(),
});
}
}