fix: Type ProfileAvatar string | null
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m20s

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2026-01-30 16:15:26 +07:00
parent 633ccd4906
commit 109caf7a0d
5 changed files with 12 additions and 20 deletions

View file

@ -164,8 +164,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 });
}
}
@ -180,12 +180,4 @@ export class ProfileAvatarController extends Controller {
return new HttpSuccess();
}
// private async deleteFile(avatar: string, avatarName: string) {
// const url = process.env.API_URL + `/salary/file/${avatar}/${avatarName}`;
// console.log(url);
// try {
// await http.delete(url);
// } catch {}
// }
}