Closed JanviMahajan14 closed 4 years ago
Merging #107 into development will decrease coverage by
15.31%
. The diff coverage is28.94%
.
@@ Coverage Diff @@
## development #107 +/- ##
================================================
- Coverage 73.44% 58.13% -15.32%
================================================
Files 11 15 +4
Lines 177 332 +155
Branches 20 43 +23
================================================
+ Hits 130 193 +63
- Misses 41 118 +77
- Partials 6 21 +15
Impacted Files | Coverage Δ | |
---|---|---|
app/models/User.js | 83.60% <ø> (+5.82%) |
:arrow_up: |
app/controllers/user.js | 20.00% <4.00%> (-20.75%) |
:arrow_down: |
app/middleware/avatar.js | 50.00% <50.00%> (ø) |
|
app/routes/user.js | 100.00% <100.00%> (ø) |
|
config/mongoose.js | 75.00% <0.00%> (-25.00%) |
:arrow_down: |
app.js | 79.06% <0.00%> (-4.27%) |
:arrow_down: |
app/routes/index.js | 80.00% <0.00%> (-3.34%) |
:arrow_down: |
... and 5 more |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 1a005bd...d255f3f. Read the comment docs.
@JanviMahajan14 this has been already done using multer.
Problem Github Issue Number: #105 There is no API for handling the profile picture uploaded by the user
Solution of problem
I have added multer and sharp for supporting file uploads. Users can upload, update,delete,get their profile picture.