fix: avatar dir

This commit is contained in:
Mohamed Marrouchi
2025-01-05 08:52:36 +01:00
parent c35be05416
commit e16660a0a0
10 changed files with 79 additions and 35 deletions

View File

@@ -95,7 +95,6 @@ export class ReadOnlyUserController extends BaseController<
*
* @returns A promise that resolves to the user's avatar or an avatar generated from initials if not found.
*/
@Roles('public')
@Get(':id/profile_pic')
async getAvatar(@Param('id') id: string) {
const user = await this.userService.findOneAndPopulate(id);