feat: add update profile service

This commit is contained in:
2026-05-10 09:53:43 +03:30
parent 73f7af3146
commit 7186af8e7f
13 changed files with 129 additions and 138 deletions
+3 -3
View File
@@ -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);
}
}