Skip to content

Commit

Permalink
Change JSON members names to Camel case syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Lowaiz committed Jun 2, 2022
1 parent 02bc544 commit af525f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/admin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,8 @@ async fn get_users_json(_token: AdminToken, conn: DbConn) -> Json<Value> {
.then(|u| async {
let u = u; // Move out this single variable
let mut usr = u.to_json(&conn).await;
usr["user_enabled"] = json!(u.enabled);
usr["created_at"] = json!(format_naive_datetime_local(&u.created_at, DT_FMT));
usr["UserEnabled"] = json!(u.enabled);
usr["CreatedAt"] = json!(format_naive_datetime_local(&u.created_at, DT_FMT));
usr
})
.collect::<Vec<Value>>()
Expand Down

0 comments on commit af525f2

Please sign in to comment.