feat: add update profile service
This commit is contained in:
@@ -8,7 +8,7 @@ import { UpdateProfileDTO } from './dto/update-profile.dto';
|
||||
export class UsersController {
|
||||
constructor(
|
||||
/**
|
||||
* Injecting Users Service
|
||||
* Inject Users Service
|
||||
*/
|
||||
private readonly usersService: UsersService,
|
||||
) {}
|
||||
@@ -19,10 +19,10 @@ export class UsersController {
|
||||
}
|
||||
|
||||
@Patch('profile')
|
||||
public updateUserProfile(
|
||||
public async updateUserProfile(
|
||||
@ActiveUser() user: User,
|
||||
@Body() updateProfileDto: UpdateProfileDTO,
|
||||
) {
|
||||
return updateProfileDto;
|
||||
return await this.usersService.updateProfile(user, updateProfileDto);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user