diff --git a/src/controllers/ProfileAvatarController.ts b/src/controllers/ProfileAvatarController.ts index c79e1821..0c194ed8 100644 --- a/src/controllers/ProfileAvatarController.ts +++ b/src/controllers/ProfileAvatarController.ts @@ -25,7 +25,7 @@ export class ProfileAvatarController extends Controller { @Get("profileId/{id}") async getProfile(@Path() id: string) { const profile = await this.profileRepository.findOne({ - select: ["avatar", "avatarName"], + select: ["id", "avatar", "avatarName"], where: { id }, });