Skip to content

Commit

Permalink
feat: send avatar email in getAvatar (#1567)
Browse files Browse the repository at this point in the history
  • Loading branch information
aalemayhu authored Aug 5, 2024
1 parent 7189699 commit 4152c92
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/controllers/UsersControllers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,9 @@ class UsersController {
const user = await this.userService.getUserById(res.locals.owner);
const name = user.name;
const picture = user.picture;
const email = user.email;

return res.json({ name, picture });
return res.json({ name, picture, email });
}
}

Expand Down

0 comments on commit 4152c92

Please sign in to comment.