]> Untitled Git - lemmy.git/commitdiff
Adding camelCase to node-info users.
authorDessalines <tyhou13@gmx.com>
Fri, 29 Jan 2021 18:48:59 +0000 (13:48 -0500)
committerDessalines <tyhou13@gmx.com>
Fri, 29 Jan 2021 18:48:59 +0000 (13:48 -0500)
src/routes/nodeinfo.rs

index e2f038fd2ed82f80d87d232aa21f14f7e05e6e05..a498f55c01ab23b6fdaca20cc48c58d70c1aaac5 100644 (file)
@@ -96,6 +96,7 @@ struct NodeInfoUsage {
 }
 
 #[derive(Serialize, Deserialize, Debug)]
+#[serde(rename_all = "camelCase")]
 struct NodeInfoUsers {
   pub total: i64,
   pub active_half_year: i64,