From b8cbbb3a6f1eacf0a3437c3b4ade1d4d630f8a47 Mon Sep 17 00:00:00 2001 From: Kittapath Date: Tue, 14 May 2024 16:20:36 +0700 Subject: [PATCH] no message --- src/controllers/ProfileAvatarController.ts | 2 +- src/entities/ProfileAvatar.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 = {