mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 08:50:15 +01:00
update profile picture (#792)
This commit is contained in:
parent
afd43afb60
commit
1dacfa49f0
3 changed files with 11 additions and 5 deletions
|
|
@ -23,6 +23,8 @@ const githubLogin = async () =>
|
|||
|
||||
const oldUser = await User.findOne({ email });
|
||||
if (oldUser) {
|
||||
oldUser.avatar = profile.photos[0].value;
|
||||
await oldUser.save();
|
||||
return cb(null, oldUser);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue