瀏覽代碼

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);
   };
 
   /**