fix: fixed 404 response from curseforge (#749)
This commit is contained in:
parent
3d804edf02
commit
be87077e95
1 changed files with 3 additions and 3 deletions
|
|
@ -210,17 +210,17 @@ impl PackageProvider for CurseForgeProvider {
|
|||
Ok(response.data.into_iter().map(|c| c.name).collect())
|
||||
}
|
||||
|
||||
#[tracing::instrument(level = "debug", skip(self, _project_id, ctx))]
|
||||
#[tracing::instrument(level = "debug", skip(self, ctx))]
|
||||
async fn get_version(
|
||||
&self,
|
||||
_project_id: &str,
|
||||
project_id: &str,
|
||||
version_id: &str,
|
||||
ctx: &ContentCtx,
|
||||
) -> ContentResult<VersionDetail> {
|
||||
let response: CfData<CfFile> = fetch_json(
|
||||
&ctx.net,
|
||||
Method::GET,
|
||||
&api_url(&format!("/mods/files/{version_id}")),
|
||||
&api_url(&format!("/mods/{project_id}/files/{version_id}")),
|
||||
None,
|
||||
)
|
||||
.await?;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue