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

Commit 1ee3a80

Browse files
committed
feat(users): enhance studios data structure in user response
1 parent 6cb6619 commit 1ee3a80

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
@@ -384,7 +384,14 @@ export class Users {
384384
verificationKey: genVerificationKey(userWithData.user_id),
385385
google_id: userWithData.google_id,
386386
discord_id: userWithData.discord_id,
387-
studios,
387+
studios: studios.map((s) => {
388+
return {
389+
...s,
390+
id: s.user_id,
391+
name: s.me.username,
392+
verified: s.me.verified,
393+
}
394+
}),
388395
roles,
389396
inventory: userWithData.inventory || [],
390397
ownedItems: userWithData.ownedItems || [],

0 commit comments

Comments
 (0)