Преглед изворни кода

BugFix for /attachments.obsoletedGetForMongoDB

Yuki Takei пре 6 година
родитељ
комит
ccf87d7211
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/server/routes/attachment.js

+ 1 - 1
src/server/routes/attachment.js

@@ -182,7 +182,7 @@ module.exports = function(crowi, app) {
 
     const attachment = await Attachment.findOne({ filePath });
 
-    return responseForAttachment(res, req.user, attachment);
+    return responseForAttachment(req, res, attachment);
   };
 
   /**