add extension to name, when upload profile pictures

This commit is contained in:
Barış Soner Uşaklı
2026-04-03 12:03:46 -04:00
parent fb48ab3455
commit f66317b7a7

View File

@@ -144,7 +144,7 @@ module.exports = function (User) {
const uploadedImage = await image.uploadImage(filename, `profile/uid-${updateUid}`, {
uid: updateUid,
path: normalizedPath,
name: 'profileAvatar',
name: `profileAvatar${extension}`,
});
await User.updateProfile(callerUid, {