fix: avatar : string
All checks were successful
Build & Deploy on Dev / build (push) Successful in 54s

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2026-01-30 18:22:07 +07:00
parent 89a34f38ef
commit 74752361be
2 changed files with 4 additions and 4 deletions

View file

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

View file

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