diff --git a/src/controllers/ProfileAvatarController.ts b/src/controllers/ProfileAvatarController.ts index 492636a7..f98b202e 100644 --- a/src/controllers/ProfileAvatarController.ts +++ b/src/controllers/ProfileAvatarController.ts @@ -48,7 +48,7 @@ export class ProfileAvatarController extends Controller { profile.avatar = avatar; await this.profileRepository.save(profile); - return new HttpSuccess(); + return new HttpSuccess(avatar); } @Delete("{avatarId}") diff --git a/src/entities/ProfileAvatar.ts b/src/entities/ProfileAvatar.ts index 1469a806..0f4b03ed 100644 --- a/src/entities/ProfileAvatar.ts +++ b/src/entities/ProfileAvatar.ts @@ -39,12 +39,12 @@ export class ProfileAvatar extends EntityBase { export class CreateProfileAvatar { profileId: string; - avatar: string | null; + // avatar: string | null; } export class CreateProfileEmployeeAvatar { profileEmployeeId: string; - avatar: string | null; + // avatar: string | null; } export type UpdateProfileAvatar = {