Skip to content

Commit

Permalink
fix: prevent the GetUsers API from producing recursive responses
Browse files Browse the repository at this point in the history
Refs c3af1a4
  • Loading branch information
thewilkybarkid committed Jul 4, 2024
1 parent c3af1a4 commit 831428b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/controllers/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default function controller(users, personas, contacts, keys, thisUser) {
ctx.body = {
statusCode: 200,
status: 'ok',
data: [...allUsers].map(user => ({...user, defaultPersona: {...user.defaultPersona, avatar: undefined}})),
data: [...allUsers].map(user => ({...user, defaultPersona: {...user.defaultPersona, identity: undefined, avatar: undefined}})),
};
ctx.response.status = 200;
},
Expand Down

0 comments on commit 831428b

Please sign in to comment.