Skip to content

Commit 1b5ead0

Browse files
authored
Merge pull request #203 from hackmcgill/bugfix/202-downloadResume
Fix bug. Using Admin privileges here to merge this.
2 parents 6c33e2f + 1d51917 commit 1b5ead0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

middlewares/hacker.middleware.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ async function uploadResume(req, res, next) {
205205
async function downloadResume(req, res, next) {
206206
const hacker = await Services.Hacker.findById(req.body.id);
207207
if (hacker && hacker.application && hacker.application.portfolioURL && hacker.application.portfolioURL.resume) {
208-
res.body.resume = await Services.Storage.download(hacker.application.portfolioURL.resume);
208+
req.body.resume = await Services.Storage.download(hacker.application.portfolioURL.resume);
209209
} else {
210210
return next({
211211
status: 404,

0 commit comments

Comments
 (0)