Skip to content

Commit 4ff7066

Browse files
committed
fix: package donation data
1 parent 996df8c commit 4ff7066

File tree

1 file changed

+2
-2
lines changed
  • packages/core/src/api/packages

1 file changed

+2
-2
lines changed

packages/core/src/api/packages/data.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,14 +201,14 @@ pub struct PackageLinks {
201201
#[onelauncher_macro::specta]
202202
#[derive(Default, Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
203203
pub struct PackageDonationUrl {
204-
#[serde(alias = "id")]
205-
pub platform: PackageDonationPlatform,
204+
pub id: PackageDonationPlatform,
206205
pub url: String,
207206
}
208207

209208
/// https://api.modrinth.com/v2/tag/donation_platform
210209
#[onelauncher_macro::specta]
211210
#[derive(Default, Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
211+
#[serde(rename_all = "lowercase")]
212212
pub enum PackageDonationPlatform {
213213
Patreon,
214214
#[serde(alias = "bmac")]

0 commit comments

Comments
 (0)