Skip to content
This repository was archived by the owner on Apr 8, 2026. It is now read-only.

Commit 6cb6619

Browse files
committed
feat(users): add studios field to user response and format studio data
1 parent 3620c88 commit 6cb6619

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/controllers/UserController.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,6 +668,7 @@ export class Users {
668668
steam_username: "string",
669669
steam_avatar_url: "string",
670670
isStudio: "boolean",
671+
studios: "array",
671672
admin: "boolean",
672673
inventory: "array",
673674
ownedItems: "array",
@@ -700,7 +701,13 @@ export class Users {
700701
);
701702
res.send({
702703
...this.mapUserSearch(userWithData),
703-
studios,
704+
studios: studios.map((s) => {
705+
return {
706+
id: s.user_id,
707+
name: s.me.username,
708+
verified: s.me.verified,
709+
}
710+
}),
704711
inventory: userWithData.inventory || [],
705712
ownedItems: userWithData.ownedItems || [],
706713
createdGames: userWithData.createdGames || [],

0 commit comments

Comments
 (0)