fix: test entity avatar

This commit is contained in:
Warunee Tamkoo 2026-01-30 17:22:25 +07:00
parent cd68478945
commit 84fb85ef3a
2 changed files with 4 additions and 4 deletions

View file

@ -164,8 +164,8 @@ export class ProfileAvatarController extends Controller {
where: { id: _record.profileId },
});
if (profile) {
profile.avatar = "";
profile.avatarName = "";
profile.avatar = null;
profile.avatarName = null;
await this.profileRepository.save(profile, { data: req });
}
}

View file

@ -58,14 +58,14 @@ export class Profile extends EntityBase {
comment: "รูปถ่าย",
default: null,
})
avatar: string;
avatar: string | null;
@Column({
nullable: true,
comment: "รูปถ่าย",
default: null,
})
avatarName: string;
avatarName: string | null;
@Column({
nullable: true,