mirror of
https://github.com/gnmyt/LicenseAPI.git
synced 2026-01-11 10:41:46 +00:00
Show avatar in account.ts controller
This commit is contained in:
@ -73,5 +73,5 @@ export const getSimpleAccountObjectById = async (id: string) => {
|
||||
const account = await Account.findById(id);
|
||||
if (account === null) return {};
|
||||
|
||||
return {id: account._id, username: account.username, email: account.email};
|
||||
return {id: account._id, username: account.username, email: account.email, avatar: generateAvatarUrl(account.email)};
|
||||
}
|
||||
Reference in New Issue
Block a user