fix: type avatar & avatarName, clear value null
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m39s
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m39s
This commit is contained in:
parent
74752361be
commit
e92321d360
4 changed files with 12 additions and 8 deletions
|
|
@ -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 });
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue