Skip to content

Commit 1d51917

Browse files
committed
Fix bug
1 parent 3420f25 commit 1d51917

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)