Compare commits

..

No commits in common. "74752361be00b4a49a350e7d945435288c94d918" and "33122a4b7e9ff0f120bb4f5e72c9891bc656d83e" have entirely different histories.

2 changed files with 4 additions and 4 deletions

View file

@ -165,8 +165,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,