Fixed incorrect URL generated for Modrinth (#89)

Fixes #73
This commit is contained in:
Minecraftschurli 2024-01-14 21:31:24 +01:00 committed by GitHub
parent ef72f0bed1
commit f8cee9e545
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,7 +66,7 @@ export class ModrinthUploader extends GenericPlatformUploader<ModrinthUploaderOp
return { return {
id: project.id, id: project.id,
version: version.id, version: version.id,
url: `https://modrinth.com/${project.project_type}/${project.slug}/version/${version.name}`, url: `https://modrinth.com/${project.project_type}/${project.slug}/version/${version.version_number}`,
files: version.files.map(x => ({ id: x.hashes.sha1, name: x.filename, url: x.url })), files: version.files.map(x => ({ id: x.hashes.sha1, name: x.filename, url: x.url })),
}; };
} }