get me api
This commit is contained in:
parent
815e8aeaf0
commit
d8d3dff2e7
8 changed files with 1719 additions and 575 deletions
|
|
@ -10,11 +10,11 @@ import {
|
|||
LoginResponse,
|
||||
RegisterResponse,
|
||||
RefreshTokenResponse,
|
||||
UserResponse,
|
||||
ResetPasswordResponse,
|
||||
ChangePasswordResponse,
|
||||
ResetRequestResponse
|
||||
} from '../types/auth.types';
|
||||
import { UserResponse } from '../types/user.types';
|
||||
import { UnauthorizedError, ValidationError, ForbiddenError } from '../middleware/errorHandler';
|
||||
import nodemailer from 'nodemailer';
|
||||
|
||||
|
|
@ -323,6 +323,8 @@ export class AuthService {
|
|||
id: user.id,
|
||||
username: user.username,
|
||||
email: user.email,
|
||||
updated_at: user.updated_at,
|
||||
created_at: user.created_at,
|
||||
role: {
|
||||
code: user.role.code,
|
||||
name: user.role.name
|
||||
|
|
@ -331,7 +333,9 @@ export class AuthService {
|
|||
prefix: user.profile.prefix,
|
||||
first_name: user.profile.first_name,
|
||||
last_name: user.profile.last_name,
|
||||
avatar_url: user.profile.avatar_url
|
||||
phone: user.profile.phone,
|
||||
avatar_url: user.profile.avatar_url,
|
||||
birth_date: user.profile.birth_date
|
||||
} : undefined
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue