feat: use updateProfile for picture change

so it triggers action:user:updateProfile
This commit is contained in:
Barış Soner Uşaklı
2021-03-03 17:11:13 -05:00
parent f806befd2f
commit a598abcd8e
5 changed files with 16 additions and 7 deletions

View File

@@ -134,6 +134,7 @@ editController.uploadPicture = async function (req, res, next) {
await user.checkMinReputation(req.uid, updateUid, 'min:rep:profile-picture');
const image = await user.uploadCroppedPictureFile({
callerUid: req.uid,
uid: updateUid,
file: userPhoto,
});