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

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2026-01-30 17:05:16 +07:00
parent 109caf7a0d
commit 79372e803c
5 changed files with 10 additions and 10 deletions

View file

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

View file

@ -160,8 +160,8 @@ export class ProfileAvatarEmployeeController extends Controller {
where: { id: _record.profileEmployeeId },
});
if (profile) {
profile.avatar = null;
profile.avatarName = null;
profile.avatar = '';
profile.avatarName = '';
await this.profileRepository.save(profile, { data: req });
}
}

View file

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

View file

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

View file

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