This repository has been archived by the owner on Aug 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(user): fix changeProfilePicture to overwrite existing files
* fix(user): fix changeProfilePicture * use promises to simplify callbacks * use fs.unlink to delete old picture once the profile is updated Fixes #1415 * fix(user): fix changeProfilePicture * use promises to simplify callbacks * use fs.unlink to delete old picture once the profile is updated * log file errors to console Fixes #1415 * fix(user): fix changeProfilePicture * use promises to simplify callbacks * use fs.unlink to delete old picture once the profile is updated * log file errors to console * update error handler module to handle file upload errors Fixes #1415 * fix(user): fix changeProfilePicture * use promises to simplify callbacks * use fs.unlink to delete old picture once the profile is updated * log file errors to console * update error handler module to handle file upload errors Fixes #1415
- Loading branch information
Showing
2 changed files
with
78 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters