Przeglądaj źródła

BugFix for /attachments.obsoletedGetForMongoDB

Yuki Takei 6 lat temu
rodzic
commit
ccf87d7211
1 zmienionych plików z 1 dodań i 1 usunięć
  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);
   };
 
   /**