fix: test entity avatar
This commit is contained in:
parent
cd68478945
commit
84fb85ef3a
2 changed files with 4 additions and 4 deletions
|
|
@ -164,8 +164,8 @@ export class ProfileAvatarController extends Controller {
|
||||||
where: { id: _record.profileId },
|
where: { id: _record.profileId },
|
||||||
});
|
});
|
||||||
if (profile) {
|
if (profile) {
|
||||||
profile.avatar = "";
|
profile.avatar = null;
|
||||||
profile.avatarName = "";
|
profile.avatarName = null;
|
||||||
await this.profileRepository.save(profile, { data: req });
|
await this.profileRepository.save(profile, { data: req });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -58,14 +58,14 @@ export class Profile extends EntityBase {
|
||||||
comment: "รูปถ่าย",
|
comment: "รูปถ่าย",
|
||||||
default: null,
|
default: null,
|
||||||
})
|
})
|
||||||
avatar: string;
|
avatar: string | null;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
comment: "รูปถ่าย",
|
comment: "รูปถ่าย",
|
||||||
default: null,
|
default: null,
|
||||||
})
|
})
|
||||||
avatarName: string;
|
avatarName: string | null;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue