fix(users): return camelCase from GET /users list — UserSummary was snake_case
Some checks failed
lint / lint (push) Has been cancelled
test / unit (push) Has been cancelled
test / integration (push) Has been cancelled
lint / lint (pull_request) Failing after 9m34s
test / unit (pull_request) Successful in 16m5s
test / integration (pull_request) Failing after 18m6s
Some checks failed
lint / lint (push) Has been cancelled
test / unit (push) Has been cancelled
test / integration (push) Has been cancelled
lint / lint (pull_request) Failing after 9m34s
test / unit (pull_request) Successful in 16m5s
test / integration (pull_request) Failing after 18m6s
This commit is contained in:
@@ -148,12 +148,14 @@ pub async fn get_users(
|
|||||||
serde_json::json!({
|
serde_json::json!({
|
||||||
"id": u.id.as_uuid(),
|
"id": u.id.as_uuid(),
|
||||||
"username": u.username,
|
"username": u.username,
|
||||||
"display_name": u.display_name,
|
"displayName": u.display_name,
|
||||||
"avatar_url": u.avatar_url,
|
"avatarUrl": u.avatar_url,
|
||||||
"bio": u.bio,
|
"bio": u.bio,
|
||||||
"thought_count": u.thought_count,
|
"headerUrl": null,
|
||||||
"follower_count": u.follower_count,
|
"customCss": null,
|
||||||
"following_count": u.following_count,
|
"local": true,
|
||||||
|
"isFollowedByViewer": false,
|
||||||
|
"joinedAt": null,
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
.collect();
|
.collect();
|
||||||
|
|||||||
Reference in New Issue
Block a user