We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c352f3 commit 5babff7Copy full SHA for 5babff7
src/app/modules/user/user.service.ts
@@ -63,7 +63,7 @@ const updateProfileToDB = async (
63
}
64
65
//unlink file here
66
- if (payload.image) {
+ if (payload.image && isExistUser.image) {
67
unlinkFile(isExistUser.image);
68
69
0 commit comments